:root {
  --ink: #111a17;
  --paper: #faf8f1;
  --line: #d8d7cf;
  --acid: #d4ff32;
  --forest: #21483b;
  --muted: #6d746f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

[hidden] {
  display: none !important;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.topbar {
  height: 78px;
  max-width: none;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.site-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 78px);
}

.page-content {
  min-width: 0;
}

.tool-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 28px 16px;
  overflow-y: auto;
  background: #efeee7;
  border-right: 1px solid var(--line);
}

.tool-navigation {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15px;
}

.tool-navigation-initializing,
.tool-navigation-initializing * {
  transition: none !important;
}

.tool-navigation strong {
  font-size: 10px;
  letter-spacing: 1.2px;
}

.tool-navigation .flexaccordian-item-header {
  border-radius: 7px;
}

.tool-navigation li.current > .flexaccordian-item-header {
  background: #dfe8d8 !important;
  color: var(--ink) !important;
  box-shadow: inset 3px 0 0 var(--forest);
}

.brand {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  width: fit-content;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.brand small {
  color: #66716b;
  font-size: 12px;
  font-weight: 500;
}

.brand-mark {
  width: 33px;
  height: 33px;
  display: inline-block;
  flex: 0 0 auto;
  margin-right: 7px;
  align-self: center;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.github-link {
  color: #47504c;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.topbar-actions {
  justify-self: end;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 22px;
}

.mobile-menu-toggle {
  position: relative;
  z-index: 1001;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
}

.mobile-menu-toggle:hover {
  background: #efeee7;
}

.mobile-menu-toggle:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 2px;
}

.mobile-menu-toggle-icon,
.mobile-menu-toggle-icon::before,
.mobile-menu-toggle-icon::after {
  width: 20px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.mobile-menu-toggle-icon {
  position: relative;
}

.mobile-menu-toggle-icon::before,
.mobile-menu-toggle-icon::after {
  position: absolute;
  left: 0;
  content: '';
}

.mobile-menu-toggle-icon::before {
  transform: translateY(-6px);
}

.mobile-menu-toggle-icon::after {
  transform: translateY(6px);
}

.mobile-menu-toggle[aria-expanded='true'] .mobile-menu-toggle-icon {
  background: transparent;
}

.mobile-menu-toggle[aria-expanded='true'] .mobile-menu-toggle-icon::before {
  transform: rotate(45deg);
}

.mobile-menu-toggle[aria-expanded='true'] .mobile-menu-toggle-icon::after {
  transform: rotate(-45deg);
}

.client-ip {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.client-ip strong {
  color: var(--ink);
  font: 700 12px/1.2 monospace;
}

.client-ip small {
  color: var(--forest);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.github-link span {
  color: var(--forest);
}

.mobile-drawer-meta {
  display: none;
}

.home-splash {
  min-height: calc(100vh - 208px);
  padding: 56px 28px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home-splash-logo {
  display: block;
  width: clamp(210px, 24vw, 320px);
  height: auto;
  margin: 0 auto 36px;
}

.home-splash-wordmark {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  color: var(--ink);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.home-splash-wordmark small {
  color: #66716b;
  font-size: 0.54em;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.home-splash-statement {
  margin: 32px 0 0;
  color: #737b76;
  font-size: clamp(25px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.15;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #55615b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.utility-page {
  --utility-accent: #5f5cd6;
  background:
    radial-gradient(circle at 86% 9%, rgb(95 92 214 / 10%), transparent 27%),
    radial-gradient(circle at 18% 74%, rgb(49 133 214 / 7%), transparent 30%),
    var(--paper);
}

.utility-workspace {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 88px 0 100px;
}

.utility-heading {
  max-width: 700px;
  margin-bottom: 42px;
}

.utility-heading .kicker {
  color: var(--utility-accent);
}

.utility-heading h1 {
  margin: 18px 0;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -3px;
}

.utility-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.utility-panel {
  padding: 34px;
  border: 1px solid #d3d8ea;
  border-radius: 18px;
  background: rgb(255 255 255 / 82%);
  color: var(--ink);
  box-shadow: 0 18px 48px rgb(48 53 113 / 9%);
}

.utility-panel > .field-label,
.utility-panel form > label .field-label {
  margin-top: 0;
  color: #66718d;
}

.encoding-panel,
.dkim-panel {
  max-width: 780px;
}

.dkim-panel input:focus::placeholder {
  color: transparent;
}

.image-converter-page {
  --utility-accent: #b55e35;
  background:
    radial-gradient(circle at 86% 9%, rgb(219 112 61 / 11%), transparent 27%),
    radial-gradient(circle at 18% 74%, rgb(213 156 72 / 8%), transparent 30%),
    var(--paper);
}

.image-converter-panel {
  max-width: 900px;
}

.image-file-drop {
  min-height: 260px;
  padding: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border: 2px dashed #d0b09e;
  border-radius: 14px;
  background: #fcf8f4;
  text-align: center;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.image-file-drop:hover,
.image-file-drop.is-dragging {
  border-color: #b55e35;
  background: #fff1e7;
  transform: translateY(-1px);
}

.image-file-drop:focus-within {
  outline: 3px solid rgb(181 94 53 / 24%);
  outline-offset: 3px;
}

.image-file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.image-drop-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #f2dfd2;
  color: #9d4c2b;
  font-size: 28px;
  line-height: 1;
}

.image-file-drop strong {
  color: #51392f;
  font-size: 18px;
}

.image-file-drop > span:not(.image-drop-icon) {
  color: #76645c;
  font-size: 12px;
}

.image-file-drop small {
  color: #8a817d;
  font-size: 10px;
}

.image-converter-queue {
  margin-top: 30px;
}

.image-section-heading,
.image-results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.image-section-heading .field-label {
  margin: 0 0 5px;
}

.image-section-heading strong {
  color: #3d4742;
  font-size: 14px;
}

.image-text-button {
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: #9d4c2b;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.image-text-button:hover {
  color: #71371f;
  text-decoration: underline;
}

.image-file-list,
.image-result-list {
  margin-top: 14px;
  display: grid;
  gap: 9px;
}

.image-file-card,
.image-result-card {
  min-width: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border: 1px solid #e0ddd7;
  border-radius: 11px;
  background: #fff;
}

.image-file-card img,
.image-result-card img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  background:
    linear-gradient(45deg, #ecebe7 25%, transparent 25%),
    linear-gradient(-45deg, #ecebe7 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ecebe7 75%),
    linear-gradient(-45deg, transparent 75%, #ecebe7 75%),
    #fff;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  background-size: 12px 12px;
}

.image-file-details,
.image-result-details {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.image-file-details strong,
.image-result-details strong {
  overflow: hidden;
  color: #2f3934;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-file-details span,
.image-result-details span {
  color: #757d78;
  font-size: 10px;
}

.image-animation-warning {
  color: #a44b28;
  font-size: 9px;
  font-weight: 700;
}

.image-remove-button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8a817d;
  font-size: 22px;
  cursor: pointer;
}

.image-remove-button:hover {
  background: #f7e9e1;
  color: #9d4c2b;
}

.image-converter-settings {
  margin: 25px 0 20px;
  padding: 24px;
  border: 1px solid #e0ddd7;
  border-radius: 13px;
  background: #f9f8f5;
}

.image-setting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.image-setting-field {
  min-width: 0;
  display: block;
}

.image-setting-field .field-label,
.image-resize-fieldset .field-label {
  margin-top: 0;
}

.image-setting-field select,
.image-setting-field input[type="number"] {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d4d4cd;
  border-radius: 8px;
  background: #fff;
  color: #27312c;
  font: inherit;
  font-size: 12px;
}

.image-setting-field select:focus,
.image-setting-field input[type="number"]:focus {
  border-color: #b55e35;
  outline: 3px solid rgb(181 94 53 / 18%);
}

.image-quality-control,
.image-color-control {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.image-quality-control output,
.image-color-control output {
  min-width: 54px;
  color: #5f655f;
  font: 700 11px monospace;
  text-align: right;
}

.image-quality-control input {
  margin: 0;
}

.image-resize-fieldset {
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.image-resize-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.image-resize-grid .image-setting-field > span,
.image-checkbox-field span {
  display: block;
  margin-bottom: 6px;
  color: #666f6a;
  font-size: 10px;
  font-weight: 700;
}

.image-checkbox-field {
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d4d4cd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.image-checkbox-field input {
  accent-color: #b55e35;
}

.image-checkbox-field span {
  margin: 0;
  white-space: nowrap;
}

.image-setting-help {
  margin-top: 8px;
  display: block;
  color: #858b87;
  font-size: 9px;
}

.image-background-field {
  max-width: 280px;
  margin-top: 22px;
}

.image-color-control input {
  width: 54px;
  height: 38px;
  padding: 3px;
  border: 1px solid #d4d4cd;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.image-color-control output {
  text-align: left;
}

.image-convert-button {
  max-width: 230px;
}

.image-converter-status {
  min-height: 19px;
  margin: 10px 0 0;
  color: #69716c;
  font-size: 10px;
}

.image-converter-results {
  max-width: 900px;
  margin-top: 28px;
  padding: 30px 34px;
  border: 1px solid #d9d9d1;
  border-radius: 18px;
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 18px 48px rgb(76 55 41 / 8%);
  scroll-margin-top: 24px;
}

.image-results-heading h2 {
  margin: 8px 0 0;
  font-size: 25px;
  letter-spacing: -0.8px;
}

.image-download-all {
  width: auto;
  min-width: 126px;
}

.image-download-button {
  width: auto;
  min-width: 100px;
}

@media (max-width: 620px) {
  .image-file-drop {
    min-height: 220px;
    padding: 28px 18px;
  }

  .image-setting-grid,
  .image-resize-grid {
    grid-template-columns: 1fr;
  }

  .image-converter-settings {
    padding: 20px 16px;
  }

  .image-file-card,
  .image-result-card {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .image-file-card img,
  .image-result-card img {
    width: 50px;
    height: 50px;
  }

  .image-result-card {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .image-result-card .image-download-button {
    grid-column: 1 / -1;
  }

  .image-results-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .image-download-all,
  .image-convert-button {
    width: 100%;
    max-width: none;
  }

  .image-converter-results {
    padding: 24px 18px;
  }
}

.favicon-generator-page {
  --utility-accent: #476dc8;
  background:
    radial-gradient(circle at 86% 9%, rgb(71 109 200 / 11%), transparent 27%),
    radial-gradient(circle at 18% 74%, rgb(72 151 172 / 8%), transparent 30%),
    var(--paper);
}

.favicon-generator-panel,
.favicon-generator-results {
  max-width: 1040px;
}

.favicon-file-drop {
  min-height: 230px;
  border-color: #aebce0;
  background: #f6f8fd;
}

.favicon-file-drop:hover,
.favicon-file-drop.is-dragging {
  border-color: #476dc8;
  background: #edf2ff;
}

.favicon-file-drop:focus-within {
  outline-color: rgb(71 109 200 / 24%);
}

.favicon-file-drop .image-drop-icon {
  background: #e1e8fa;
  color: #365baa;
}

.favicon-file-drop strong {
  color: #303d61;
}

.favicon-generator-error {
  margin-bottom: 0;
}

.favicon-generator-workspace {
  margin-top: 30px;
}

.favicon-section-heading {
  padding: 0 9px;
}

.favicon-source-card {
  min-width: 0;
  margin-top: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid #dce1ed;
  border-radius: 12px;
  background: #fff;
}

.favicon-source-preview,
.favicon-result-preview {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background:
    linear-gradient(45deg, #eceef3 25%, transparent 25%),
    linear-gradient(-45deg, #eceef3 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eceef3 75%),
    linear-gradient(-45deg, transparent 75%, #eceef3 75%),
    #fff;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
  background-size: 14px 14px;
}

.favicon-source-preview {
  width: 64px;
  height: 64px;
}

.favicon-source-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.favicon-source-details,
.favicon-result-details {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.favicon-source-details strong,
.favicon-result-details strong {
  overflow: hidden;
  color: #2e374c;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favicon-source-details span,
.favicon-result-details span,
.favicon-result-details small {
  color: #70788a;
  font-size: 10px;
}

.favicon-generator-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: start;
  gap: 22px;
}

.favicon-settings-section,
.favicon-preview-section {
  min-width: 0;
  padding: 24px;
  border: 1px solid #dce1ed;
  border-radius: 13px;
  background: #f9fafc;
}

.favicon-section-title,
.favicon-markup-heading {
  padding: 0 9px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.favicon-section-title .field-label,
.favicon-markup-heading .field-label {
  margin: 0;
}

.favicon-section-title small,
.favicon-markup-heading small {
  color: #7b8394;
  font-size: 9px;
  line-height: 1.5;
  text-align: right;
}

.favicon-settings-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 14px;
}

.favicon-setting-wide {
  grid-column: 1 / -1;
}

.favicon-settings-grid .image-setting-field > span:first-child {
  margin-bottom: 6px;
  display: block;
  color: #5f687a;
  font-size: 10px;
  font-weight: 700;
}

.favicon-settings-grid .image-setting-field > small {
  margin-top: 7px;
  display: block;
  color: #858c9a;
  font-size: 9px;
  line-height: 1.45;
}

.favicon-settings-grid input[type="text"],
.favicon-settings-grid select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #cfd5e2;
  border-radius: 8px;
  background: #fff;
  color: #273149;
  font: inherit;
  font-size: 12px;
}

.favicon-settings-grid input[type="text"]:hover,
.favicon-settings-grid select:hover {
  border-color: #aeb9d3;
}

.favicon-settings-grid input[type="text"]:focus,
.favicon-settings-grid select:focus {
  border-color: #476dc8;
  outline: 3px solid rgb(71 109 200 / 18%);
}

.favicon-color-control {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #cfd5e2;
  border-radius: 8px;
  background: #fff;
}

.favicon-color-control input {
  width: 48px;
  height: 34px;
  padding: 3px;
}

.favicon-color-control:hover {
  border-color: #aeb9d3;
}

.favicon-color-control:focus-within {
  border-color: #476dc8;
  outline: 3px solid rgb(71 109 200 / 18%);
}

.favicon-range-field .image-quality-control {
  min-height: 44px;
}

.favicon-range-field input[type="range"] {
  width: 100%;
  accent-color: #476dc8;
  cursor: pointer;
}

.favicon-preview-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.favicon-preview-card {
  min-width: 0;
  min-height: 168px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
  border: 1px solid #dce1ed;
  border-radius: 12px;
  background: #fff;
}

.favicon-browser-preview {
  min-height: 105px;
  grid-column: 1 / -1;
}

.favicon-preview-label {
  align-self: flex-start;
  color: #687185;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.favicon-browser-chrome {
  width: 100%;
  min-width: 0;
  height: 45px;
  padding: 0 13px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  border: 1px solid #d8dce5;
  border-radius: 10px 10px 4px 4px;
  background: #eef0f5;
  color: #3d4659;
  font-size: 10px;
}

.favicon-browser-chrome canvas {
  width: 22px;
  height: 22px;
}

.favicon-browser-chrome > span:not(.favicon-browser-close) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favicon-browser-close {
  color: #808797;
  font-size: 16px;
  text-align: center;
}

.favicon-mobile-preview {
  position: relative;
  width: 108px;
  height: 108px;
  display: block;
  overflow: hidden;
  box-shadow: 0 11px 25px rgb(39 49 73 / 14%);
}

.favicon-mobile-preview canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.favicon-apple-preview {
  border-radius: 24%;
}

.favicon-maskable-preview {
  border-radius: 31%;
}

.favicon-safe-zone {
  position: absolute;
  inset: 10%;
  border: 1px dashed rgb(255 255 255 / 86%);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(34 43 65 / 28%);
  pointer-events: none;
}

.favicon-generator-actions {
  margin-top: 22px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.favicon-generate-button {
  width: 230px;
  flex: 0 0 230px;
}

.favicon-generator-status {
  min-height: 44px;
  margin: 0;
  display: flex;
  align-items: center;
  color: #697286;
  font-size: 10px;
}

.favicon-generator-results {
  margin-top: 28px;
  padding: 30px 34px;
  border: 1px solid #d8dde9;
  border-radius: 18px;
  background: rgb(255 255 255 / 84%);
  box-shadow: 0 18px 48px rgb(48 65 105 / 9%);
  scroll-margin-top: 24px;
}

.favicon-results-heading {
  padding: 0 9px;
}

.favicon-results-heading h2 {
  margin: 8px 0 0;
  font-size: 25px;
  letter-spacing: -0.8px;
}

.favicon-download-package {
  width: auto;
  min-width: 138px;
}

.favicon-result-list {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.favicon-result-card {
  min-width: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #dfe3ec;
  border-radius: 11px;
  background: #fff;
}

.favicon-result-preview {
  width: 54px;
  height: 54px;
}

.favicon-result-preview img {
  width: 43px;
  height: 43px;
  object-fit: contain;
}

.favicon-result-preview.is-document {
  background: #edf1fb;
  color: #47629c;
  font: 800 9px monospace;
  letter-spacing: 0.5px;
}

.favicon-result-details small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favicon-file-download {
  width: auto;
  min-width: 84px;
  min-height: 38px;
  padding: 0 12px;
}

.favicon-markup-card {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid #d8dde9;
  border-radius: 13px;
  background: #f8f9fc;
}

.favicon-markup-heading {
  align-items: center;
}

.favicon-markup-heading > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.favicon-markup-heading small {
  text-align: left;
}

.favicon-markup-heading .secondary-button {
  width: auto;
  min-width: 110px;
}

.favicon-markup-card pre {
  margin: 18px 0 0;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid #dfe3ec;
  border-radius: 9px;
  background: #20293d;
  color: #eef3ff;
  font: 11px/1.65 monospace;
}

.favicon-copy-status {
  min-height: 18px;
  margin: 8px 9px 0;
  color: #647087;
  font-size: 9px;
}

.favicon-pwa-note {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 3px solid #476dc8;
  border-radius: 4px 10px 10px 4px;
  background: #edf2fd;
  color: #46516a;
}

.favicon-pwa-note strong {
  color: #303b55;
  font-size: 11px;
}

.favicon-pwa-note p {
  margin: 6px 0 0;
  font-size: 10px;
  line-height: 1.65;
}

.favicon-generator-page .image-text-button:focus-visible,
.favicon-generator-page .secondary-button:focus-visible,
.favicon-generator-page .favicon-range-field input[type="range"]:focus-visible {
  outline: 3px solid rgb(71 109 200 / 24%);
  outline-offset: 3px;
}

.favicon-generator-page .image-text-button {
  color: #476dc8;
}

.favicon-generator-page .image-text-button:hover {
  color: #31539d;
}

@media (max-width: 900px) {
  .favicon-generator-grid,
  .favicon-result-list {
    grid-template-columns: 1fr;
  }

  .favicon-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .favicon-file-drop {
    min-height: 210px;
  }

  .favicon-settings-section,
  .favicon-preview-section {
    padding: 20px 16px;
  }

  .favicon-settings-grid,
  .favicon-preview-grid {
    grid-template-columns: 1fr;
  }

  .favicon-setting-wide,
  .favicon-browser-preview {
    grid-column: auto;
  }

  .favicon-section-title,
  .favicon-markup-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .favicon-section-title small {
    text-align: left;
  }

  .favicon-generator-actions,
  .favicon-results-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .favicon-generate-button,
  .favicon-download-package {
    width: 100%;
    flex-basis: auto;
  }

  .favicon-generator-status {
    min-height: 20px;
  }

  .favicon-generator-results {
    padding: 24px 18px;
  }

  .favicon-result-card {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .favicon-result-preview {
    width: 50px;
    height: 50px;
  }

  .favicon-file-download {
    width: 100%;
    grid-column: 1 / -1;
  }

  .favicon-markup-heading .secondary-button {
    width: 100%;
  }

  .favicon-markup-card {
    padding: 18px 14px;
  }
}

.segmented {
  width: fit-content;
  margin-bottom: 18px;
  padding: 4px;
  display: flex;
  gap: 4px;
  border-radius: 10px;
  background: #ebeef7;
}

.segmented button {
  padding: 8px 13px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #737b96;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.segmented button:hover {
  background: #e0e4f2;
  color: #3e4b70;
}

.segmented button.active {
  background: #fff;
  color: #4542a0;
}

.field-label {
  display: block;
  margin: 12px 0 8px;
  color: #6f7772;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.result-field {
  min-height: 56px;
  padding: 10px 10px 10px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d8d8d0;
  border-radius: 9px;
  background: #fff;
}

.result-field code {
  flex: 1;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.result-field button {
  width: 74px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: #eef1fb;
  color: #426fd0;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.result-field button:hover {
  background: #e1e6f7;
  color: #315dbb;
}

.result-multiline {
  min-height: 78px;
  align-items: flex-start;
}

.result-multiline code {
  max-height: 115px;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.45;
}

.secret code {
  filter: blur(4px);
  transition: filter 150ms ease;
}

.secret:hover code,
.secret:focus-within code {
  filter: none;
}

.range-row {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
}

.range-row output {
  min-width: 31px;
  padding: 3px 7px;
  border-radius: 5px;
  text-align: center;
  background: #e8eadf;
  font: 700 11px monospace;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--forest);
}

.option-grid {
  margin: 21px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.option-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #59615d;
  font-size: 11px;
}

.option-grid input {
  accent-color: var(--forest);
}

.primary-button,
.secondary-button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.primary-button {
  width: 100%;
  border: 1px solid #426fd0;
  background: #426fd0;
  color: #fff;
}

.primary-button:hover:not(:disabled) {
  border-color: #527fde;
  background: #527fde;
}

.primary-button:active:not(:disabled) {
  border-color: #315dbb;
  background: #315dbb;
}

.primary-button:focus-visible {
  outline: 3px solid rgb(66 111 208 / 28%);
  outline-offset: 3px;
}

.primary-button span {
  float: right;
}

.primary-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.secondary-button {
  width: 100%;
  border: 1px solid #cbd2e2;
  background: #fff;
  color: #36415f;
}

.secondary-button:hover {
  border-color: #aeb9d3;
  background: #f2f4fa;
}

.secondary-button:active {
  border-color: #929fbe;
  background: #e8ebf5;
}

textarea,
.two-fields input {
  width: 100%;
  padding: 12px;
  border: 1px solid #d8d8d0;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 95px;
  resize: vertical;
  font: 12px/1.5 monospace;
}

textarea:focus,
.two-fields input:focus {
  border-color: #426fd0;
  box-shadow: 0 0 0 3px rgb(66 111 208 / 12%);
}

.button-row {
  margin: 11px 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.two-fields {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.blacklist-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  gap: 8px;
}

.blacklist-input-row input {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d8d8d0;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font: 13px monospace;
}

.blacklist-input-row input:focus {
  border-color: #426fd0;
  box-shadow: 0 0 0 3px rgb(66 111 208 / 12%);
}

.blacklist-input-row .primary-button {
  min-width: 142px;
}

.field-error {
  display: block;
  min-height: 18px;
  margin-top: 7px;
  color: #a43e3e;
  font-size: 11px;
  font-weight: 700;
}

.field-help {
  margin: 4px 0 0;
  color: #747b77;
  font-size: 10px;
  line-height: 1.5;
}

.blacklist-results {
  margin-top: 18px;
  padding: 38px 42px 42px;
  border: 1px solid #d3d8ea;
  border-radius: 18px;
  background: rgb(255 255 255 / 86%);
  color: var(--ink);
  box-shadow: 0 18px 48px rgb(48 53 113 / 9%);
}

.blacklist-results-head {
  padding: 0 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.blacklist-results-head .kicker {
  color: #5f5cd6;
}

.blacklist-results-head h2 {
  margin: 8px 0 0;
  font: 700 clamp(24px, 3vw, 34px) monospace;
  letter-spacing: -1.5px;
}

.blacklist-summary {
  min-width: 190px;
  text-align: right;
}

.blacklist-summary strong {
  display: block;
  color: #426fd0;
  font-size: 28px;
  line-height: 1;
}

.blacklist-summary span {
  display: block;
  margin-top: 5px;
  color: #6f7772;
  font-size: 10px;
}

.blacklist-table-wrap {
  overflow-x: auto;
  border: 1px solid #d8d8d0;
  border-radius: 10px;
  background: #fff;
}

.blacklist-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 12px;
}

.blacklist-table th,
.blacklist-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e3e3dc;
  text-align: left;
  vertical-align: middle;
}

.blacklist-table thead th {
  background: #eef0ea;
  color: #68706b;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.blacklist-table tbody tr:last-child th,
.blacklist-table tbody tr:last-child td {
  border-bottom: 0;
}

.blacklist-table a {
  color: #426fd0;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.blacklist-coverage-label {
  white-space: nowrap;
}

.blacklist-listing-column {
  white-space: nowrap;
}

.blacklist-acronym-trigger {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 750;
}

.blacklist-tip-indicator {
  color: #426fd0;
  font-size: 11px;
  line-height: 1;
}

.blacklist-flex-tip {
  width: 280px;
  max-width: calc(100vw - 32px);
  color: #29445f;
  font-size: 11px;
  line-height: 1.5;
}

.blacklist-tip-title,
.blacklist-tip-description,
.blacklist-tip-rule {
  display: block;
}

.blacklist-tip-title {
  color: #152f49;
  font-size: 11px;
}

.blacklist-tip-rule {
  margin: 7px 0;
  border-top: 1px solid #d5dce2;
}

.blacklist-status {
  display: inline-block;
  min-width: 82px;
  padding: 5px 8px;
  border-radius: 999px;
  text-align: center;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.blacklist-status.listed {
  background: #f5dede;
  color: #963737;
}

.blacklist-status.not-listed {
  background: #dcefe0;
  color: #377446;
}

.blacklist-status.failed {
  background: #f4ebcf;
  color: #80651f;
}

.blacklist-disclaimer {
  margin: 18px 10px 0;
  color: #6f7772;
  font-size: 10px;
  line-height: 1.6;
}

.whois-page {
  background:
    radial-gradient(circle at 86% 9%, rgb(95 92 214 / 11%), transparent 27%),
    radial-gradient(circle at 17% 76%, rgb(49 133 214 / 8%), transparent 31%),
    var(--paper);
}

.whois-workspace {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 88px 0 100px;
}

.whois-heading {
  max-width: 680px;
  margin-bottom: 42px;
}

.whois-heading .kicker {
  color: #5f5cd6;
}

.whois-heading h1 {
  margin: 18px 0;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -3px;
}

.whois-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.whois-control-card {
  padding: 34px;
  border: 1px solid #d3d8ea;
  border-radius: 18px;
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 18px 48px rgb(48 53 113 / 9%);
}

.whois-control-card .field-label {
  margin-top: 0;
  color: #66718d;
}

.whois-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  gap: 8px;
}

.whois-input-row input {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d8d8d0;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font: 13px monospace;
}

.whois-input-row input:focus {
  border-color: #426fd0;
  box-shadow: 0 0 0 3px rgb(66 111 208 / 12%);
}

.whois-input-row .primary-button {
  min-width: 142px;
}

.whois-message {
  margin-top: 18px;
  padding: 24px 42px;
  border: 1px solid #cbd6f2;
  border-radius: 14px;
  background: #f3f6ff;
  color: #35466f;
}

.whois-message-warning {
  border-color: #e1d29d;
  background: #fff8df;
  color: #674f13;
}

.whois-message strong {
  font-size: 12px;
}

.whois-message p {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.55;
}

.whois-results {
  margin-top: 18px;
  padding: 38px 42px 42px;
  border: 1px solid #d3d8ea;
  border-radius: 18px;
  background: rgb(255 255 255 / 86%);
  color: var(--ink);
  box-shadow: 0 18px 48px rgb(48 53 113 / 9%);
}

.whois-results-head {
  padding: 0 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.whois-results-head .kicker {
  color: #5f5cd6;
}

.whois-results-head h2 {
  margin: 8px 0 0;
  font: 700 clamp(24px, 3vw, 34px) monospace;
  letter-spacing: -1.5px;
  overflow-wrap: anywhere;
}

.whois-ascii-domain {
  display: block;
  margin-top: 5px;
  color: #737b77;
  font: 10px monospace;
}

.whois-source-link {
  flex: 0 0 auto;
  color: #426fd0;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.whois-source-link:hover {
  text-decoration: underline;
}

.whois-source-label {
  flex: 0 0 auto;
  color: #737b96;
  font: 800 10px monospace;
}

.whois-fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.whois-fact {
  min-height: 92px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #dfe3ee;
  border-radius: 10px;
  background: #fff;
}

.whois-fact-wide {
  grid-column: span 2;
}

.whois-fact span,
.whois-contacts > h3,
.whois-detail-card h3 {
  margin: 0 0 9px;
  color: #737b77;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.whois-fact strong {
  color: #253d69;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.whois-detail-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.whois-detail-card,
.whois-contacts {
  padding: 20px;
  border: 1px solid #dfe3ee;
  border-radius: 10px;
  background: #fff;
}

.whois-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.whois-chip-list span {
  padding: 6px 8px;
  border-radius: 999px;
  background: #ececfa;
  color: #4b48a2;
  font: 700 9px monospace;
  overflow-wrap: anywhere;
}

.whois-value-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  list-style: none;
}

.whois-value-list li {
  color: #3b4766;
  font: 11px/1.45 monospace;
  overflow-wrap: anywhere;
}

.whois-empty-value {
  margin: 0;
  color: #7b827e;
  font-size: 11px;
}

.whois-contacts {
  margin-top: 10px;
}

.whois-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.whois-contact-grid article {
  min-width: 0;
  padding: 13px;
  display: grid;
  gap: 5px;
  border-radius: 8px;
  background: #f2f3f8;
}

.whois-contact-grid span {
  color: #737b77;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.whois-contact-grid strong,
.whois-contact-grid a {
  color: #3b4766;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.whois-raw {
  margin-top: 10px;
  border: 1px solid #dfe3ee;
  border-radius: 10px;
  background: #fff;
}

.whois-raw summary {
  padding: 16px 20px;
  color: #484690;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.whois-raw pre {
  max-height: 430px;
  margin: 0;
  padding: 18px 20px;
  overflow: auto;
  border-top: 1px solid #e3e5ef;
  background: #f2f3f8;
  color: #3b4766;
  font: 10px/1.55 monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.whois-disclaimer {
  margin: 18px 10px 0;
  color: #6f7772;
  font-size: 10px;
  line-height: 1.6;
}

.tool-page {
  min-height: calc(100vh - 208px);
  padding: 1px 28px;
}

.password-page {
  background:
    radial-gradient(circle at 84% 12%, rgb(54 116 190 / 10%), transparent 28%),
    var(--paper);
}

.password-workspace {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 88px 0 100px;
}

.password-heading {
  max-width: 650px;
  margin-bottom: 42px;
}

.password-heading .kicker {
  color: #2c68ac;
}

.password-heading h1 {
  margin: 18px 0;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -3px;
}

.password-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.password-control-card {
  padding: 34px;
  border: 1px solid #cfd9e5;
  border-radius: 16px;
  background: rgb(255 255 255 / 78%);
  box-shadow: 0 18px 48px rgb(31 67 107 / 9%);
}

.password-control-card > .field-label {
  margin-top: 0;
  color: #58708a;
}

.password-result-field {
  min-height: 72px;
  padding: 10px 10px 10px 20px;
  gap: 8px;
  border-color: #b9c9da;
}

.password-result-field code {
  min-width: 0;
  color: #16324f;
  font-size: clamp(14px, 2vw, 19px);
  line-height: 1.4;
}

.password-result-field .password-refresh-button {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  background: #edf3f9;
  color: #2c68ac;
  font-size: 20px;
}

.password-result-field .password-copy-button {
  flex: 0 0 82px;
  width: 82px;
  min-height: 42px;
  background: #3185d6;
  color: #fff;
  box-shadow: 0 4px 12px rgb(49 133 214 / 20%);
  transition:
    background-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.password-result-field button:hover {
  filter: brightness(0.96);
}

.password-result-field .password-copy-button:hover {
  background: #4a9bea;
  box-shadow: 0 9px 20px rgb(37 119 196 / 30%);
  filter: none;
  transform: translateY(-2px);
}

.password-result-field .password-copy-button:active {
  background: #2675bf;
  box-shadow: 0 3px 8px rgb(37 119 196 / 24%);
  transform: translateY(0);
}

.password-result-field button:focus-visible {
  outline: 3px solid rgb(49 133 214 / 28%);
  outline-offset: 2px;
}

.password-range-row {
  margin-top: 30px;
  align-items: center;
  color: #29445f;
  font-size: 14px;
}

.password-length-label {
  color: #58708a;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.65px;
}

.password-range-row output {
  min-width: 44px;
  min-height: 30px;
  padding: 6px 10px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #d2dee8;
  border-radius: 7px;
  background: #edf3f7;
  color: var(--strength-color, #2c68ac);
  font: 700 14px/1 Arial, Helvetica, sans-serif;
  font-variant-numeric: tabular-nums;
}

.password-range-values {
  display: grid;
  grid-template-columns: 170px 44px;
  gap: 6px;
}

.password-range-row .password-strength-output {
  min-width: 170px;
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0.1px;
}

.password-length-slider {
  --range-progress: 26.67%;
  --allowed-maximum-progress: 100%;
  --strength-color: #35bd68;
  height: 34px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.password-slider-shell {
  position: relative;
  margin-top: 6px;
  padding-bottom: 34px;
}

.password-length-slider::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--strength-color) 0 var(--range-progress),
    #dce4ec var(--range-progress) var(--allowed-maximum-progress),
    #edf0f3 var(--allowed-maximum-progress) 100%
  );
}

.password-length-slider::-webkit-slider-thumb {
  width: 26px;
  height: 26px;
  margin-top: -8px;
  appearance: none;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--strength-color);
  box-shadow: 0 1px 6px rgb(22 50 79 / 30%);
}

.password-length-slider::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #dce4ec 0 var(--allowed-maximum-progress),
    #edf0f3 var(--allowed-maximum-progress) 100%
  );
}

.password-length-slider::-moz-range-progress {
  height: 10px;
  border-radius: 999px;
  background: var(--strength-color);
}

.password-length-slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--strength-color);
  box-shadow: 0 1px 6px rgb(22 50 79 / 30%);
}

.password-length-slider:focus-visible {
  outline: 0;
}

.password-length-slider:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgb(44 104 172 / 20%);
}

.password-length-slider:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgb(44 104 172 / 20%);
}

.password-limit-marker {
  position: absolute;
  top: 30px;
  transform: translateX(-50%);
  color: #58708a;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.password-limit-marker.at-end {
  transform: translateX(-100%);
}

.password-limit-marker.at-end::before {
  left: 100%;
}

.password-limit-marker::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  width: 2px;
  height: 14px;
  border-radius: 999px;
  background: #2c68ac;
  transform: translateX(-50%);
}

.password-limit-marker output {
  font: inherit;
}

.password-option-grid {
  margin-bottom: 0;
  padding-top: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
  border-top: 1px solid #e1e7ee;
}

.password-option-grid label {
  min-height: 40px;
  color: #425a70;
  font-size: 13px;
}

.password-option-grid input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0;
  display: grid;
  place-content: center;
  -webkit-appearance: none;
  appearance: none;
  border: 1.5px solid #9cabb8;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.password-option-grid input[type="checkbox"]::before {
  content: "";
  width: 6px;
  height: 10px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 100ms ease;
}

.password-option-grid input[type="checkbox"]:hover {
  border-color: #168b78;
  box-shadow: 0 0 0 3px rgb(22 139 120 / 10%);
}

.password-option-grid input[type="checkbox"]:checked {
  border-color: #168b78;
  background: #168b78;
}

.password-option-grid input[type="checkbox"]:checked::before {
  transform: rotate(45deg) scale(1);
}

.password-option-grid input[type="checkbox"]:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgb(22 139 120 / 20%);
}

.password-option-with-tip {
  display: flex;
  align-items: center;
  gap: 5px;
}

.password-option-with-tip label {
  min-height: 40px;
}

.password-duplicates-option {
  grid-column: 3;
  grid-row: 1;
}

.password-similars-option {
  grid-column: 3;
  grid-row: 2;
}

.password-tip-indicator {
  flex: 0 0 auto;
  color: #2c68ac;
  font-size: 14px;
  cursor: default;
}

.password-flex-tip {
  max-width: 280px;
  color: #29445f;
  font-size: 11px;
  line-height: 1.5;
}

.speed-test-page {
  background:
    radial-gradient(circle at 86% 9%, rgb(95 92 214 / 10%), transparent 27%),
    radial-gradient(circle at 20% 72%, rgb(49 133 214 / 8%), transparent 30%),
    var(--paper);
}

.speed-test-workspace {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 88px 0 100px;
}

.speed-test-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.speed-test-heading .kicker {
  color: #5f5cd6;
}

.speed-test-heading h1 {
  margin: 18px 0;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -3px;
}

.speed-test-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.speed-test-panel {
  padding: 34px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 38px;
  border: 1px solid #d3d8ea;
  border-radius: 18px;
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 18px 48px rgb(48 53 113 / 9%);
}

.speed-test-meter-column {
  padding-right: 38px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid #e1e4ef;
}

.speed-test-meter {
  --meter-progress: 0%;
  position: relative;
  width: 238px;
  height: 238px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    from -42deg,
    #5f5cd6 0,
    #3185d6 var(--meter-progress),
    #e8ebf3 var(--meter-progress),
    #e8ebf3 100%
  );
  box-shadow: 0 13px 30px rgb(49 87 157 / 14%);
  transition: background 180ms ease;
}

.speed-test-meter::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px #edf0f6;
}

.speed-test-meter-value {
  position: relative;
  z-index: 1;
  min-width: 160px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  justify-content: center;
  column-gap: 6px;
  text-align: center;
}

.speed-test-meter-value strong {
  justify-self: end;
  color: #253d69;
  font: 700 clamp(44px, 6vw, 62px)/1 monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -4px;
}

.speed-test-meter-value > span {
  justify-self: start;
  color: #6c7690;
  font-size: 12px;
  font-weight: 800;
}

.speed-test-meter-value small {
  margin-top: 9px;
  grid-column: 1 / -1;
  color: #5f5cd6;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.speed-test-button {
  min-width: 174px;
  min-height: 48px;
  margin-top: 28px;
  padding: 12px 24px;
  border: 0;
  border-radius: 8px;
  background: #426fd0;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgb(66 111 208 / 25%);
  transition:
    background-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.speed-test-button:hover {
  background: #527fde;
  box-shadow: 0 11px 24px rgb(66 111 208 / 32%);
  transform: translateY(-2px);
}

.speed-test-button:active {
  background: #315dbb;
  box-shadow: 0 4px 10px rgb(66 111 208 / 23%);
  transform: translateY(0);
}

.speed-test-button:focus-visible {
  outline: 3px solid rgb(66 111 208 / 28%);
  outline-offset: 3px;
}

.speed-test-button[aria-busy="true"] {
  background: #6b7190;
  box-shadow: none;
}

.speed-test-status {
  min-height: 36px;
  margin: 14px 0 0;
  color: #778096;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.speed-test-results {
  min-width: 0;
}

.speed-test-phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.speed-test-phases span {
  padding: 0 4px 11px;
  border-bottom: 3px solid #e4e7ef;
  color: #969cad;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: center;
  text-transform: uppercase;
  transition:
    border-color 150ms ease,
    color 150ms ease;
}

.speed-test-phases span.active {
  border-color: #426fd0;
  color: #315dbb;
}

.speed-test-phases span.done {
  border-color: #7b78dc;
  color: #5f5cd6;
}

.speed-test-metric-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.speed-test-metric {
  min-height: 122px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  align-items: baseline;
  column-gap: 7px;
  border: 1px solid #dfe3ee;
  border-radius: 12px;
  background: #f8f9fc;
}

.speed-test-metric > span {
  margin-bottom: 13px;
  grid-column: 1 / -1;
  color: #7a8398;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.9px;
}

.speed-test-metric strong {
  min-width: 0;
  overflow: hidden;
  color: #253d69;
  font: 700 clamp(28px, 4vw, 38px)/1 monospace;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
}

.speed-test-metric small {
  color: #7a8398;
  font-size: 10px;
  font-weight: 800;
}

.speed-test-note {
  margin-top: 18px;
  padding: 17px 19px;
  border-left: 3px solid #7b78dc;
  border-radius: 0 9px 9px 0;
  background: #f2f1fb;
}

.speed-test-note strong {
  color: #484690;
  font-size: 11px;
}

.speed-test-note p {
  margin: 5px 0 0;
  color: #74758d;
  font-size: 11px;
  line-height: 1.55;
}

.coming-soon {
  max-width: 760px;
  min-height: 420px;
  margin: 70px auto;
  padding: 70px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 110%, rgb(217 255 88 / 16%), transparent 38%),
    #fff;
}

.coming-soon .kicker {
  color: var(--forest);
}

.coming-soon h1 {
  margin: 18px 0;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -3px;
}

.coming-soon p {
  max-width: 490px;
  color: var(--muted);
  line-height: 1.65;
}

.back-link {
  display: inline-block;
  margin-top: 26px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

footer {
  min-height: 130px;
  padding: 30px max(28px, calc((100% - 1164px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
}

footer p,
footer > span {
  color: #7b827e;
  font-size: 11px;
}

footer > span {
  justify-self: end;
}

@media (max-width: 900px) {
  .site-shell {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 68px);
  }

  .tool-sidebar.mobile-navigation-drawer {
    position: fixed !important;
    border-bottom: 0;
    transform: translate3d(-100%, 0, 0);
  }

  .mobile-navigation-drawer:not(.mobile-navigation-ready) {
    transition: none !important;
  }

  .mobile-navigation-drawer:not(.mobile-navigation-ready),
  .mobile-navigation-drawer:not(.mobile-navigation-ready) * {
    visibility: hidden !important;
  }

  .speed-test-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .speed-test-meter-column {
    padding: 0 0 28px;
    border-right: 0;
    border-bottom: 1px solid #e1e4ef;
  }

  .topbar {
    height: 68px;
    min-height: 68px;
    padding: 0 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .topbar-actions {
    display: none;
  }

  .mobile-drawer-meta {
    margin: 24px 10px 0;
    padding: 20px 0 4px;
    display: grid;
    gap: 16px;
    border-top: 1px solid var(--line);
  }

  .mobile-drawer-ip {
    min-width: 0;
    display: grid;
    gap: 6px;
  }

  .mobile-drawer-meta-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
  }

  .mobile-drawer-ip-value {
    min-width: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
  }

  .mobile-drawer-ip-value strong {
    max-width: 100%;
    color: var(--ink);
    font: 700 12px/1.4 monospace;
    overflow-wrap: anywhere;
  }

  .mobile-drawer-ip-value small {
    color: var(--forest);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
  }

  .mobile-drawer-contact {
    min-height: 46px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--forest);
    border-radius: 8px;
    background: var(--forest);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
  }

  .mobile-drawer-contact:hover {
    background: #173a2f;
  }

  .mobile-drawer-contact:focus-visible {
    outline: 3px solid var(--acid);
    outline-offset: 2px;
  }

  .mobile-drawer-contact-type {
    color: var(--acid);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

}

@media (min-width: 901px) {
  .tool-sidebar.mobile-navigation-drawer {
    position: sticky !important;
    top: 0 !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100vh !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 28px 16px !important;
    visibility: visible !important;
    pointer-events: auto !important;
    overflow-y: auto !important;
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
    z-index: auto !important;
  }
}

@media (max-width: 620px) {
  .option-grid,
  .two-fields {
    grid-template-columns: 1fr;
  }

  .tool-page {
    padding: 1px 12px;
  }

  .coming-soon {
    margin-top: 40px;
    margin-bottom: 50px;
  }

  .utility-workspace {
    padding: 54px 6px 70px;
  }

  .utility-heading {
    margin-bottom: 30px;
  }

  .utility-panel {
    padding: 24px 18px;
  }

  .password-workspace {
    padding: 54px 6px 70px;
  }

  .password-heading {
    margin-bottom: 30px;
  }

  .password-control-card {
    padding: 22px 18px;
  }

  .whois-workspace {
    padding: 54px 6px 70px;
  }

  .whois-heading {
    margin-bottom: 30px;
  }

  .whois-control-card {
    padding: 22px 18px;
  }

  .speed-test-workspace {
    padding: 54px 6px 70px;
  }

  .speed-test-heading {
    margin-bottom: 30px;
  }

  .speed-test-panel {
    padding: 24px 18px;
  }

  .speed-test-meter {
    width: 216px;
    height: 216px;
  }

  .speed-test-metric {
    min-height: 108px;
    padding: 16px;
  }

  .password-duplicates-option,
  .password-similars-option {
    grid-column: auto;
    grid-row: auto;
  }

  .password-result-field {
    padding-left: 14px;
  }

  .password-result-field .password-copy-button {
    flex-basis: 72px;
    width: 72px;
  }

  .blacklist-input-row {
    grid-template-columns: 1fr;
  }

  .blacklist-input-row .primary-button {
    min-width: 0;
  }

  .whois-input-row {
    grid-template-columns: 1fr;
  }

  .whois-input-row .primary-button {
    min-width: 0;
  }

  .whois-results,
  .whois-message {
    padding: 28px 18px 30px;
  }

  .whois-results-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .whois-fact-grid,
  .whois-detail-grid,
  .whois-contact-grid {
    grid-template-columns: 1fr;
  }

  .whois-fact-wide {
    grid-column: auto;
  }

  .blacklist-results {
    padding: 28px 18px 30px;
  }

  .blacklist-results-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .blacklist-summary {
    min-width: 0;
    text-align: left;
  }

  .coming-soon {
    min-height: 340px;
    padding: 40px 24px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: left;
  }

  footer > span {
    justify-self: start;
  }

}

.mail-tool-page {
  --utility-accent: #476dc8;
}

body.markdown-editor-page {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.markdown-editor-page .topbar {
  height: 60px;
  min-height: 60px;
}

.markdown-editor-page .site-shell {
  height: calc(100vh - 60px);
  height: calc(100dvh - 60px);
  min-height: 0;
}

.markdown-editor-page .tool-sidebar {
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
}

.markdown-editor-page .page-content {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

.markdown-editor-page .tool-page {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.markdown-editor-page .utility-workspace.markdown-editor-layout {
  width: min(100%, 1800px);
  height: 100%;
  min-height: 0;
  padding: 12px 0 10px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.markdown-editor-page .markdown-editor-heading {
  max-width: none;
  min-width: 0;
  min-height: 28px;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 20px;
  padding: 0 10px;
}

.markdown-editor-title {
  min-width: 0;
  display: flex;
  align-items: center;
}

.markdown-font-size-control {
  --markdown-slider-thumb-size: 14px;
  --markdown-slider-tick-width: 2px;
  position: relative;
  top: 3px;
  width: 240px;
  max-width: 100%;
  min-height: 28px;
  margin-left: auto;
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
  color: #666666;
  font-size: 10px;
  font-weight: 400;
}

.markdown-font-size-control label {
  flex: none;
  white-space: nowrap;
}

.markdown-font-size-small {
  font-size: 10px;
}

.markdown-font-size-large {
  font-size: 14px;
}

.markdown-font-size-track {
  position: relative;
  min-width: 0;
  height: 28px;
  flex: 1;
}

#markdown-font-size {
  width: 100%;
  height: 28px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

#markdown-font-size::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: #b8b8b8;
}

#markdown-font-size::-moz-range-track {
  height: 3px;
  border-radius: 2px;
  background: #b8b8b8;
}

#markdown-font-size::-webkit-slider-thumb {
  width: var(--markdown-slider-thumb-size);
  height: var(--markdown-slider-thumb-size);
  margin-top: calc((3px - var(--markdown-slider-thumb-size)) / 2);
  box-sizing: border-box;
  appearance: none;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #888888;
  box-shadow: 0 0 0 1px #777777;
}

#markdown-font-size::-moz-range-thumb {
  width: var(--markdown-slider-thumb-size);
  height: var(--markdown-slider-thumb-size);
  box-sizing: border-box;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #888888;
  box-shadow: 0 0 0 1px #777777;
}

#markdown-font-size:hover::-webkit-slider-thumb {
  background: #666666;
}

#markdown-font-size:hover::-moz-range-thumb {
  background: #666666;
}

#markdown-font-size:focus-visible {
  outline: 2px solid #777777;
  outline-offset: 2px;
  border-radius: 4px;
}

.markdown-font-size-ticks {
  position: absolute;
  top: 0;
  right: calc((var(--markdown-slider-thumb-size) - var(--markdown-slider-tick-width)) / 2);
  left: calc((var(--markdown-slider-thumb-size) - var(--markdown-slider-tick-width)) / 2);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.markdown-font-size-ticks span {
  width: var(--markdown-slider-tick-width);
  height: 3px;
  background: #858585;
}

#markdown-font-size-value {
  width: 4ch;
  flex: none;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.markdown-editor-icon {
  width: 28px;
  height: 28px;
  margin-right: 8px;
  display: block;
  flex: none;
}

.markdown-editor-page .markdown-editor-heading .kicker {
  color: #2c7a68;
  white-space: nowrap;
}

.markdown-editor-heading-separator {
  margin: 0 8px;
  flex: none;
  color: #2c7a68;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.markdown-editor-page .markdown-editor-heading h1 {
  min-width: 0;
  margin: 0;
  color: #59647e;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.markdown-editor-shell {
  min-width: 0;
  min-height: 0;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #cfd8d4;
  border-radius: 14px;
  background: rgb(255 255 255 / 78%);
  box-shadow: 0 18px 48px rgb(33 72 59 / 9%);
}

.markdown-editor-commandbar {
  position: relative;
  min-height: 58px;
  padding: 10px 14px;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #dce3df;
  background: #f8f8f4;
}

.markdown-editor-file-actions,
.markdown-editor-view-actions,
.markdown-editor-preferences {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.markdown-editor-view-actions {
  padding: 3px;
  border: 1px solid #d4dcd8;
  border-radius: 8px;
  background: #ecefeb;
}

.markdown-source-spellcheck {
  position: absolute;
  top: 50%;
  left: calc(44% - 42px);
  display: flex;
  flex: none;
  align-items: center;
  transform: translate(-100%, -50%);
}

.markdown-editor-commandbar button,
.markdown-format-toolbar button,
.markdown-import-confirmation button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid #c8d2cd;
  border-radius: 7px;
  background: #fff;
  color: #33463f;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.markdown-editor-commandbar button:hover,
.markdown-format-toolbar button:hover:not(:disabled),
.markdown-import-confirmation button:hover {
  border-color: #87a299;
  background: #f1f7f4;
  color: #173d31;
}

.markdown-editor-commandbar button:focus-visible,
.markdown-format-toolbar button:focus-visible,
.markdown-import-confirmation button:focus-visible,
.markdown-remote-image-placeholder:focus-visible {
  outline: 3px solid rgb(44 122 104 / 24%);
  outline-offset: 2px;
}

#markdown-copy-source {
  min-width: 132px;
}

.markdown-copy-button-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.markdown-copy-button-content[hidden] {
  display: none;
}

.markdown-copy-button-success {
  gap: 5px;
}

.markdown-copy-button-success .flexicon {
  display: block;
  width: 14px;
  height: 14px;
  flex: none;
}

.markdown-editor-view-actions button {
  min-width: 58px;
  min-height: 28px;
  padding: 0 9px;
  border-color: transparent;
  background: transparent;
}

.markdown-editor-view-actions button[aria-pressed='true'] {
  border-color: #c6d2cd;
  background: #fff;
  color: #1f5b4b;
  box-shadow: 0 1px 4px rgb(40 63 54 / 10%);
}

.markdown-editor-preferences {
  justify-content: flex-end;
}

.markdown-editor-preferences .flextoggle-container,
.markdown-source-spellcheck .flextoggle-container {
  min-width: max-content;
  color: #53625c;
  font-family: inherit;
}

.markdown-editor-preferences .flextoggle-label,
.markdown-source-spellcheck .flextoggle-label {
  font-size: 10px;
  font-weight: 800;
}

.markdown-editor-preferences .flextoggle-switch input:focus-visible + .flextoggle-slider,
.markdown-source-spellcheck .flextoggle-switch input:focus-visible + .flextoggle-slider {
  outline: 3px solid rgb(44 122 104 / 28%);
  outline-offset: 2px;
}

.markdown-editor-workspace {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, var(--markdown-source-width, 44%)) minmax(0, 1fr);
  overflow: hidden;
}

.markdown-scroll-sync-button {
  position: absolute;
  top: 9px;
  left: var(--markdown-source-width, 44%);
  z-index: 4;
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  border: 1px solid #c8d1cd;
  border-radius: 999px;
  background: #fff;
  color: #6d7974;
  box-shadow: 0 2px 8px rgb(32 55 46 / 13%);
}

.markdown-scroll-sync-button:hover {
  border-color: #7f9f93;
  color: #21483b;
}

.markdown-scroll-sync-button:focus-visible {
  outline: 3px solid rgb(44 122 104 / 28%);
  outline-offset: 2px;
}

.markdown-scroll-sync-button[aria-pressed='true'] {
  border-color: #21483b;
  background: #21483b;
  color: #fff;
}

.markdown-scroll-sync-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.markdown-scroll-sync-button[aria-pressed='true'] .markdown-scroll-sync-lock-open,
.markdown-scroll-sync-button[aria-pressed='false'] .markdown-scroll-sync-lock-closed {
  display: none;
}

.markdown-editor-workspace:not([data-view='split']) .markdown-scroll-sync-button {
  display: none;
}

.markdown-splitter {
  position: absolute;
  top: 52px;
  bottom: 0;
  left: var(--markdown-source-width, 44%);
  width: 9px;
  transform: translateX(-50%);
  z-index: 3;
  cursor: col-resize;
  touch-action: none;
  user-select: none;
}

.markdown-splitter:hover,
.markdown-splitter.is-resizing {
  background: rgb(52 111 135 / 18%);
}

.markdown-splitter:focus-visible {
  outline: 2px solid #346f87;
  outline-offset: -2px;
}

.markdown-editor-workspace:not([data-view='split']) .markdown-splitter {
  display: none;
}

.markdown-format-toolbar button:disabled {
  cursor: default;
  opacity: .45;
}

.markdown-editor-workspace[data-view='split'] .markdown-source-panel .markdown-panel-header {
  padding-right: 28px;
}

.markdown-editor-workspace[data-view='split'] .markdown-preview-panel .markdown-panel-header {
  padding-left: 42px;
}

.markdown-editor-workspace[data-view='source'],
.markdown-editor-workspace[data-view='preview'] {
  grid-template-columns: minmax(0, 1fr);
}

.markdown-editor-workspace[data-view='source'] .markdown-preview-panel,
.markdown-editor-workspace[data-view='preview'] .markdown-source-panel {
  display: none;
}

.utility-panel.markdown-editor-panel {
  min-width: 0;
  min-height: 0;
  padding: 0;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.markdown-source-panel {
  border-right: 1px solid #dce3df !important;
}

.markdown-editor-workspace[data-view='source'] .markdown-source-panel {
  border-right: 0 !important;
}

.markdown-panel-header {
  min-height: 52px;
  padding: 0 18px;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e0e5e2;
  background: #fbfbf8;
}

.markdown-panel-header .field-label {
  margin: 0;
  color: #60716a;
}

#markdown-filename,
#markdown-image-policy {
  min-width: 0;
  color: #7a8580;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#markdown-filename[data-dirty='true']::after {
  color: #a2681d;
  content: ' · Unsaved';
}

.markdown-format-toolbar {
  min-height: 50px;
  padding: 8px 12px;
  display: flex;
  flex: none;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  border-bottom: 1px solid #e5e9e7;
  background: #f5f7f4;
  scrollbar-width: thin;
}

.markdown-format-toolbar button {
  min-width: 34px;
  min-height: 30px;
  padding: 0 9px;
  flex: none;
}

.markdown-toolbar-separator {
  width: 1px;
  height: 22px;
  margin: 0 2px;
  flex: none;
  background: #cfd7d3;
}

.markdown-source-body,
.markdown-editor-dropzone {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.markdown-editor-dropzone {
  position: relative;
}

#markdown-source {
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 22px 24px;
  flex: 1;
  resize: none;
  border: 0;
  outline: 0;
  background: #fff;
  color: #18251f;
  caret-color: #2c7a68;
  font: calc(13px * var(--markdown-font-scale, 1))/1.65 Consolas, 'Courier New', monospace;
  tab-size: 2;
}

#markdown-source:focus {
  box-shadow: inset 0 0 0 2px rgb(44 122 104 / 18%);
}

.markdown-source-footer {
  min-height: 38px;
  padding: 7px 16px;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid #e5e9e7;
  background: #fbfbf8;
}

.markdown-source-footer p,
#markdown-source-statistics {
  margin: 0;
  color: #76817c;
  font-size: 9px;
  line-height: 1.35;
}

#markdown-source-statistics {
  flex: none;
  white-space: nowrap;
}

.markdown-source-notes {
  min-width: 0;
}

#markdown-draft-status {
  display: block;
  min-height: 2.7em;
  color: #315e4e;
  font-size: 11px;
  line-height: 1.35;
}

#markdown-draft-status[data-state='warning'] {
  color: #92451b;
}

.markdown-import-confirmation {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 5;
  min-height: 70px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #c49d57;
  border-radius: 10px;
  background: #fff9e9;
  color: #5b431b;
  box-shadow: 0 12px 30px rgb(76 55 19 / 18%);
}

.markdown-import-confirmation-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
  font-size: 11px;
}

.markdown-import-confirmation-copy span {
  color: #7e6332;
  line-height: 1.4;
}

.markdown-import-confirmation-actions {
  display: flex;
  flex: none;
  gap: 6px;
}

.markdown-import-confirmation-actions button:first-child {
  border-color: #806126;
  background: #806126;
  color: #fff;
}

.markdown-preview {
  min-width: 0;
  min-height: 0;
  padding: clamp(26px, 4vw, 54px) clamp(24px, 5vw, 72px) 70px;
  flex: 1;
  overflow: auto;
  color: #202a26;
  font: calc(15px * var(--markdown-font-scale, 1))/1.72 Arial, Helvetica, sans-serif;
  overflow-wrap: anywhere;
  scrollbar-gutter: stable;
}

.markdown-preview:focus-visible {
  outline: 3px solid rgb(44 122 104 / 24%);
  outline-offset: -4px;
}

.markdown-preview > *:first-child {
  margin-top: 0;
}

.markdown-preview > *:last-child {
  margin-bottom: 0;
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3,
.markdown-preview h4,
.markdown-preview h5,
.markdown-preview h6 {
  color: #14211c;
  line-height: 1.22;
}

.markdown-preview h1 {
  margin: 0 0 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dce3df;
  font-size: calc(clamp(32px, 4vw, 48px) * var(--markdown-font-scale, 1));
  letter-spacing: -1.6px;
}

.markdown-preview h2 {
  margin: 42px 0 16px;
  font-size: calc(27px * var(--markdown-font-scale, 1));
  letter-spacing: -0.6px;
}

.markdown-preview h3 {
  margin: 32px 0 13px;
  font-size: calc(21px * var(--markdown-font-scale, 1));
}

.markdown-preview h4,
.markdown-preview h5,
.markdown-preview h6 {
  margin: 26px 0 12px;
  font-size: calc(17px * var(--markdown-font-scale, 1));
}

.markdown-preview p,
.markdown-preview ul,
.markdown-preview ol,
.markdown-preview blockquote,
.markdown-preview pre,
.markdown-preview table {
  margin: 0 0 18px;
}

.markdown-preview ul,
.markdown-preview ol {
  padding-left: 28px;
}

.markdown-preview li + li {
  margin-top: 5px;
}

.markdown-preview a {
  color: #176754;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.markdown-preview a:hover {
  color: #0e493b;
}

.markdown-preview blockquote {
  padding: 4px 0 4px 18px;
  border-left: 4px solid #8eb8aa;
  color: #58675f;
}

.markdown-preview blockquote > :last-child {
  margin-bottom: 0;
}

.markdown-preview code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #eef2ef;
  color: #24483d;
  font: 0.88em/1.5 Consolas, 'Courier New', monospace;
}

.markdown-preview pre {
  padding: 18px 20px;
  overflow: auto;
  border: 1px solid #d8e0dc;
  border-radius: 10px;
  background: #17231f;
  color: #f1f4f2;
}

.markdown-preview pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: calc(12px * var(--markdown-font-scale, 1));
}

.markdown-preview hr {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid #d6dfda;
}

.markdown-preview table {
  width: 100%;
  border-collapse: collapse;
  font-size: calc(13px * var(--markdown-font-scale, 1));
}

.markdown-preview th,
.markdown-preview td {
  padding: 10px 12px;
  border: 1px solid #d6dfda;
  text-align: left;
}

.markdown-preview th {
  background: #eef3f0;
  color: #31493f;
  font-size: calc(10px * var(--markdown-font-scale, 1));
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.markdown-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.markdown-task-list {
  padding-left: 6px !important;
  list-style: none;
}

.markdown-task-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: baseline;
  gap: 7px;
}

.markdown-task-item input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #2c7a68;
}

.markdown-remote-image-placeholder {
  width: min(100%, 620px);
  min-height: 150px;
  margin: 8px 0 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  border: 2px dashed #bdc9c3;
  border-radius: 10px;
  background: #f5f7f4;
  color: #3a4d45;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.markdown-remote-image-placeholder:hover {
  border-color: #6f9b8d;
  background: #edf5f1;
}

.markdown-remote-image-state,
.markdown-remote-image-action {
  font-size: calc(9px * var(--markdown-font-scale, 1));
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.markdown-remote-image-state {
  color: #7b8580;
}

.markdown-remote-image-placeholder strong {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.markdown-remote-image-placeholder small {
  color: #7b8580;
}

.markdown-remote-image-action {
  margin-top: 8px;
  color: #176754;
}

.markdown-preview-empty,
.markdown-preview-error {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a8580;
  text-align: center;
}

.markdown-preview-error {
  color: #a13d3d;
}

.markdown-file-drop-overlay {
  position: absolute;
  inset: 14px;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border: 3px dashed #2c7a68;
  border-radius: 12px;
  background: rgb(239 247 243 / 96%);
  color: #1d5949;
  text-align: center;
  pointer-events: none;
}

.markdown-file-drop-overlay strong {
  font-size: clamp(20px, 3vw, 34px);
  letter-spacing: -0.5px;
}

.markdown-file-drop-overlay span {
  color: #587168;
  font-size: 12px;
}

.markdown-editor-workspace.is-file-dragging .markdown-file-drop-overlay {
  display: flex;
}

.markdown-editor-status {
  min-height: 34px;
  padding: 8px 16px;
  display: block;
  flex: none;
  border-top: 1px solid #dce3df;
  background: #f8f8f4;
  color: #6f7b75;
  font-size: 10px;
  line-height: 1.5;
}

.markdown-editor-status[data-state='success'] {
  color: #24604f;
}

.markdown-editor-status[data-state='warning'] {
  color: #8a5d1f;
}

.markdown-editor-status[data-state='error'] {
  color: #a13d3d;
}

.markdown-editor-page footer {
  height: 46px;
  min-height: 46px;
  padding: 6px 28px;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
}

.markdown-editor-page footer p {
  justify-self: center;
}

.markdown-guide-drawer {
  color: #1b2822;
}

.markdown-guide-drawer .flexdrawer-close-row {
  margin-bottom: 4px;
}

.markdown-guide-content {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 54px;
}

.markdown-guide-content > .kicker {
  color: #2c7a68;
}

.markdown-guide-content h2 {
  margin: 12px 0 14px;
  font-size: clamp(34px, 7vw, 50px);
  line-height: 1;
  letter-spacing: -2px;
}

.markdown-guide-content > p {
  margin: 0 0 34px;
  color: #69766f;
  line-height: 1.6;
}

.markdown-guide-content section {
  padding: 24px 0;
  border-top: 1px solid #d9dfdc;
}

.markdown-guide-content h3 {
  margin: 0 0 15px;
  font-size: 17px;
}

.markdown-guide-content section > p {
  margin: 12px 0 0;
  color: #69766f;
  font-size: 12px;
  line-height: 1.55;
}

.markdown-guide-content dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.markdown-guide-content dl div {
  min-width: 0;
  padding: 9px 11px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-radius: 7px;
  background: #f0f2ef;
}

.markdown-guide-content dt {
  color: #65716b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.markdown-guide-content dd {
  min-width: 0;
  margin: 0;
}

.markdown-guide-content code,
.markdown-guide-content pre {
  font-family: Consolas, 'Courier New', monospace;
}

.markdown-guide-content dd code {
  overflow-wrap: anywhere;
}

.markdown-guide-content pre {
  margin: 0;
  padding: 15px 17px;
  overflow: auto;
  border-radius: 8px;
  background: #17231f;
  color: #f1f4f2;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 1120px) {
  .markdown-source-spellcheck {
    position: static;
    transform: none;
  }

  .markdown-scroll-sync-button,
  .markdown-splitter {
    display: none;
  }

  .markdown-editor-workspace[data-view='split'] .markdown-source-panel .markdown-panel-header,
  .markdown-editor-workspace[data-view='split'] .markdown-preview-panel .markdown-panel-header {
    padding-right: 18px;
    padding-left: 18px;
  }

  .markdown-editor-page .tool-page {
    overflow-y: auto;
  }

  .markdown-editor-page .utility-workspace.markdown-editor-layout {
    height: auto;
    min-height: 100%;
    grid-template-rows: auto auto;
  }

  .markdown-editor-shell {
    min-height: 760px;
    overflow: visible;
  }

  .markdown-editor-commandbar {
    flex-wrap: wrap;
  }

  .markdown-editor-workspace {
    min-height: 680px;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
  }

  .markdown-editor-workspace[data-view='split'] .markdown-editor-panel {
    min-height: 540px;
  }

  .markdown-source-panel {
    border-right: 0 !important;
    border-bottom: 1px solid #dce3df !important;
  }

  .markdown-editor-workspace[data-view='source'] .markdown-source-panel,
  .markdown-editor-workspace[data-view='preview'] .markdown-preview-panel {
    min-height: 680px;
  }
}

@media (max-width: 900px) {
  .markdown-editor-page .site-shell {
    height: calc(100vh - 68px);
    height: calc(100dvh - 68px);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .markdown-editor-page .tool-sidebar {
    height: auto;
    max-height: 30dvh;
    overflow-y: auto;
  }
}

@media (max-width: 720px) {
  .markdown-editor-commandbar {
    align-items: stretch;
  }

  .markdown-editor-file-actions,
  .markdown-editor-view-actions,
  .markdown-editor-preferences {
    width: 100%;
  }

  .markdown-editor-file-actions button,
  .markdown-editor-view-actions button {
    flex: 1;
  }

  .markdown-editor-preferences {
    justify-content: space-between;
  }

  .markdown-source-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  #markdown-source-statistics {
    white-space: normal;
  }
}

/* Account and administration */
.topbar-account-link,
.topbar-signout button {
  border: 0;
  padding: 6px 0;
  color: #47504c;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.topbar-account-link:hover,
.topbar-signout button:hover {
  color: var(--forest);
}

.topbar-account-link:focus-visible,
.topbar-signout button:focus-visible,
.mobile-drawer-signout button:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 3px;
}

.topbar-signout {
  margin: 0;
}

.mobile-drawer-signout {
  margin: 0;
}

.mobile-drawer-signout button {
  width: 100%;
  border: 0;
  padding: 10px 0;
  color: #47504c;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.mobile-drawer-signout button:hover {
  color: var(--forest);
}

.account-page,
.account-manage-page,
.admin-page {
  min-height: calc(100vh - 208px);
  padding: 56px 28px 80px;
}

.account-page {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.account-card,
.account-manage-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 44px rgb(33 72 59 / 7%);
}

.account-card {
  width: min(100%, 520px);
  padding: 36px;
}

.account-card h1,
.account-manage-panel h1,
.admin-header h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.account-manage-panel h2 {
  margin: 0 0 20px;
  font-size: 20px;
}

.account-eyebrow {
  margin: 0 0 12px;
  color: var(--forest);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.account-intro {
  margin: 18px 0 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.account-form {
  margin-top: 28px;
  display: grid;
  gap: 9px;
}

.account-form-narrow {
  max-width: 520px;
}

.account-form label,
.admin-search-form label {
  margin-top: 8px;
  color: #37413d;
  font-size: 11px;
  font-weight: 800;
}

.account-form input:not([type='checkbox']),
.admin-search-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d8d8d0;
  border-radius: 8px;
  padding: 10px 12px;
  outline: 0;
  background: #fff;
  color: var(--ink);
}

.account-form input:not([type='checkbox']):hover,
.admin-search-form input:hover {
  border-color: #b8b9af;
}

.account-form input:not([type='checkbox']):focus,
.admin-search-form input:focus {
  border-color: #426fd0;
  box-shadow: 0 0 0 3px rgb(66 111 208 / 18%);
}

.account-form .primary-button,
.account-form .danger-button {
  margin-top: 14px;
}

.account-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.account-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--forest);
}

.account-field-error,
.account-validation {
  color: #a33f3f;
  font-size: 11px;
  line-height: 1.5;
}

.account-validation:empty,
.account-field-error:empty {
  display: none;
}

.account-validation ul {
  margin: 0;
  padding-left: 18px;
}

.account-field-hint {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.account-switch,
.account-links {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.account-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.account-switch a,
.account-links a,
.account-text-link,
.admin-row-link {
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
}

.account-switch a:hover,
.account-links a:hover,
.account-text-link:hover,
.admin-row-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-switch a:focus-visible,
.account-links a:focus-visible,
.account-text-link:focus-visible,
.admin-row-link:focus-visible,
.account-manage-nav a:focus-visible,
.admin-table th a:focus-visible,
.admin-pagination a:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 3px;
}

.account-button-link,
.danger-button {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.account-button-link {
  display: inline-flex;
}

.danger-button {
  width: 100%;
  border: 1px solid #a33f3f;
  display: inline-flex;
  background: #fff;
  color: #8c3333;
  transition: background-color 150ms ease, color 150ms ease;
}

.danger-button:hover {
  background: #a33f3f;
  color: #fff;
}

.danger-button:focus-visible {
  outline: 3px solid rgb(163 63 63 / 25%);
  outline-offset: 3px;
}

.account-notice {
  min-height: 44px;
  margin: 22px 0;
  border: 1px solid #b8cfbf;
  border-radius: 8px;
  padding: 12px 14px;
  background: #eef7ef;
  color: #24583d;
  font-size: 12px;
  line-height: 1.55;
}

.account-notice-warning {
  border-color: #e1c68f;
  background: #fff7e8;
  color: #76531b;
}

.account-notice-error {
  border-color: #f1aeb5;
  background: #f8d7da;
  color: #58151c;
}

.account-actions {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.account-manage-page {
  display: grid;
  grid-template-columns: 230px minmax(0, 820px);
  align-items: start;
  justify-content: center;
  gap: 24px;
}

.account-manage-page-standalone {
  grid-template-columns: minmax(0, 620px);
}

.account-manage-nav {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 3px;
  background: #efeee7;
}

.account-manage-nav a {
  border-radius: 7px;
  padding: 11px 12px;
  color: #47504c;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.account-manage-nav a:hover {
  background: #dfe8d8;
  color: var(--ink);
}

.account-manage-panel {
  min-width: 0;
  padding: 32px;
}

.account-details {
  margin: 28px 0;
  display: grid;
  gap: 0;
}

.account-details div {
  border-top: 1px solid #ecebe5;
  padding: 13px 0;
  display: grid;
  grid-template-columns: minmax(140px, 0.45fr) minmax(0, 1fr);
  gap: 18px;
}

.account-details dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.account-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.notification-email-section {
  margin-top: 30px;
  border-top: 1px solid #ecebe5;
  padding-top: 26px;
}

.notification-email-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.notification-email-heading h2,
.notification-email-add h2 {
  margin-bottom: 7px;
}

.notification-email-heading p,
.notification-email-add > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.notification-email-count {
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8eee5;
  color: var(--forest);
  font-size: 11px;
  font-weight: 900;
}

.notification-email-empty {
  margin: 18px 0 0;
  border: 1px dashed #d9d9d0;
  border-radius: 10px;
  padding: 22px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.notification-email-list {
  margin-top: 18px;
  display: grid;
  gap: 9px;
}

.notification-email-item {
  min-width: 0;
  border: 1px solid #e2e2da;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fbfbf8;
}

.notification-email-details {
  min-width: 0;
}

.notification-email-address-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.notification-email-address-line strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
}

.notification-email-details small {
  margin-top: 5px;
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.notification-email-status {
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.notification-email-status.is-verified {
  background: #dcece1;
  color: #2d6648;
}

.notification-email-status.is-pending {
  background: #fff0ce;
  color: #79581c;
}

.notification-email-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.notification-email-actions form {
  margin: 0;
}

.notification-email-actions .secondary-button,
.text-danger-button {
  width: auto;
  min-height: 34px;
  padding: 0 11px;
  font-size: 9px;
}

.notification-email-resend {
  display: inline-grid;
  align-items: center;
}

.notification-email-resend > span {
  grid-area: 1 / 1;
}

.notification-email-resend-confirmation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  visibility: hidden;
}

.notification-email-resend.is-sent [data-resend-label] {
  visibility: hidden;
}

.notification-email-resend.is-sent .notification-email-resend-confirmation {
  visibility: visible;
}

.notification-email-resend[aria-disabled="true"] {
  cursor: default;
  border-color: #cbd2e2;
  background: #fff;
}

.text-danger-button {
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #9a3c3c;
  font-weight: 800;
  cursor: pointer;
}

.text-danger-button:hover {
  border-color: #e8c8c8;
  background: #fff1f1;
}

.text-danger-button:focus-visible,
.notification-email-actions .secondary-button:focus-visible {
  outline: 3px solid rgb(66 111 208 / 22%);
  outline-offset: 2px;
}

.notification-email-add .account-form {
  margin-top: 18px;
}

.recovery-code-list {
  font-family: "Cascadia Mono", Consolas, monospace;
}

.mfa-setup-options {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.mfa-setup-option {
  min-width: 0;
  border: 1px solid #ecebe5;
  border-radius: 10px;
  padding: 18px;
}

.mfa-setup-option h2 {
  margin-bottom: 12px;
  font-size: 14px;
}

.mfa-setup-option p,
.mfa-verification-intro {
  color: #47504c;
  font-size: 12px;
  line-height: 1.6;
}

.mfa-setup-option p {
  margin: 14px 0 8px;
}

.mfa-qr-option {
  text-align: center;
}

.mfa-qr-code {
  width: min(100%, 220px);
  height: auto;
  display: block;
  margin: 0 auto;
}

.mfa-setup-key {
  display: block;
  border-radius: 5px;
  padding: 3px 6px;
  background: #efeee7;
  color: var(--ink);
  font-family: "Cascadia Mono", Consolas, monospace;
  overflow-wrap: anywhere;
}

.mfa-app-link {
  display: inline-block;
}

.mfa-verification-intro {
  margin: 22px 0 0;
}

.recovery-code-panel {
  margin: 24px 0;
  border: 1px solid #e1c68f;
  border-radius: 10px;
  padding: 20px;
  background: #fff7e8;
}

.recovery-code-panel h2 {
  margin-bottom: 8px;
}

.recovery-code-panel p {
  color: #76531b;
  font-size: 12px;
  line-height: 1.55;
}

.recovery-code-list {
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
}

.recovery-code-list li {
  border: 1px solid #e7d7b5;
  border-radius: 5px;
  padding: 8px;
  background: #fff;
  text-align: center;
}

.recovery-code-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.recovery-code-copy-button {
  width: auto;
}

.recovery-code-copy-status {
  min-height: 18px;
  margin: 0;
  color: #76531b;
  font-size: 11px;
  line-height: 1.5;
}

.account-inline-actions,
.admin-action-stack {
  display: grid;
  gap: 10px;
}

.account-inline-actions {
  max-width: 400px;
  margin-top: 24px;
}

.admin-page {
  max-width: 1220px;
  margin: 0 auto;
}

.admin-header {
  margin: 0 10px 30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.admin-create-link {
  width: auto;
  flex: 0 0 auto;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-settings-panel {
  max-width: 720px;
  margin: 0 10px;
  padding: 32px;
}

.admin-search-form {
  max-width: 580px;
  margin: 0 10px 24px;
}

.admin-search-form > div {
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  gap: 8px;
}

.admin-table-shell {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  background: #fff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #e8e7e0;
  padding: 13px 14px;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  background: #efeee7;
  color: #47504c;
  font-size: 10px;
  letter-spacing: 0.35px;
  white-space: nowrap;
}

.admin-table th a {
  color: inherit;
  text-decoration: none;
}

.sort-indicator {
  margin-left: 3px;
  color: #999f9b;
  font-size: 8px;
}

.sort-indicator.selected,
.admin-table th a:hover .sort-indicator,
.admin-table th a:focus-visible .sort-indicator {
  color: #0d6efd;
}

.admin-table tbody tr:not(.admin-empty-row):hover {
  background: #f4f4f0;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table td strong,
.admin-table td small {
  display: block;
}

.admin-table td small {
  margin-top: 3px;
  color: #8c5b2f;
  font-size: 9px;
}

.admin-table td:last-child {
  text-align: right;
}

.status-badge {
  border-radius: 999px;
  padding: 4px 8px;
  display: inline-block;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.status-badge.active {
  background: #e6f3e8;
  color: #24583d;
}

.status-badge.disabled {
  background: #f1e6e6;
  color: #8c3333;
}

.admin-empty-row td {
  padding: 44px 20px;
  color: var(--muted);
  text-align: center;
}

.admin-pagination {
  margin: 20px 10px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-pagination a,
.admin-pagination span {
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: #fff;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.admin-pagination a:hover,
.admin-pagination span {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  gap: 20px;
}

.admin-audit-panel {
  margin-top: 20px;
}

.admin-audit-table td:last-child {
  text-align: left;
}

@media (max-width: 1080px) {
  .topbar-actions {
    gap: 13px;
  }

  .client-ip,
  .github-link {
    display: none;
  }
}

@media (max-width: 780px) {
  .account-page,
  .account-manage-page,
  .admin-page {
    padding: 32px 16px 60px;
  }

  .account-manage-page,
  .admin-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-manage-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-create-link {
    width: 100%;
  }

  .admin-header-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .account-card,
  .account-manage-panel {
    padding: 24px 20px;
  }

  .account-manage-nav,
  .recovery-code-list,
  .account-details div {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .notification-email-item {
    align-items: stretch;
    flex-direction: column;
  }

  .notification-email-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .markdown-editor-page .utility-workspace.markdown-editor-layout {
    padding: 10px 0;
  }

  .markdown-editor-page .markdown-editor-heading h1,
  .markdown-editor-heading-separator {
    display: none;
  }

  .markdown-editor-shell {
    border-radius: 10px;
  }

  .markdown-editor-commandbar {
    padding: 9px;
  }

  .markdown-editor-file-actions,
  .markdown-editor-view-actions {
    gap: 4px;
  }

  .markdown-editor-commandbar button {
    padding-right: 7px;
    padding-left: 7px;
  }

  .markdown-format-toolbar {
    padding-right: 8px;
    padding-left: 8px;
  }

  #markdown-source {
    padding: 18px 16px;
    font-size: calc(12px * var(--markdown-font-scale, 1));
  }

  .markdown-preview {
    padding: 26px 18px 52px;
  }

  .markdown-preview h1 {
    font-size: calc(34px * var(--markdown-font-scale, 1));
  }

  .markdown-preview h2 {
    font-size: calc(24px * var(--markdown-font-scale, 1));
  }

  .markdown-import-confirmation {
    align-items: stretch;
    flex-direction: column;
  }

  .markdown-import-confirmation-actions {
    justify-content: flex-end;
  }

  .markdown-editor-page footer {
    height: 42px;
    min-height: 42px;
    padding: 4px 18px;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .markdown-editor-page footer p {
    display: none;
  }

  .markdown-editor-page footer > span {
    justify-self: end;
  }

  .markdown-guide-content dl div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

.mail-query-panel {
  max-width: 860px;
}

.mail-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 8px;
}

.mail-input-row input,
.mail-domain-fields input,
.mail-form input,
.mail-form select {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d8d8d0;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font: 13px monospace;
}

.mail-form select {
  font-family: inherit;
}

.mail-input-row input:focus,
.mail-domain-fields input:focus,
.mail-form input:focus,
.mail-form select:focus {
  border-color: #426fd0;
  box-shadow: 0 0 0 3px rgb(66 111 208 / 12%);
}

.mail-domain-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(180px, 0.75fr);
  gap: 12px;
  margin-bottom: 12px;
}

.mail-tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.mail-tool-grid .utility-panel {
  height: 100%;
}

.mail-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
  margin-bottom: 18px;
}

.mail-form-grid label {
  min-width: 0;
}

.mail-form-grid label > span:first-child {
  display: block;
  margin-bottom: 7px;
  color: #66718d;
  font-size: 10px;
  font-weight: 800;
}

.mail-form-wide {
  grid-column: 1 / -1;
}

.mail-results {
  margin-top: 18px;
  padding: 38px 42px 42px;
  border: 1px solid #d3d8ea;
  border-radius: 18px;
  background: rgb(255 255 255 / 86%);
  color: var(--ink);
  box-shadow: 0 18px 48px rgb(48 53 113 / 9%);
}

.mail-results-head {
  padding: 0 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.mail-results-head .kicker {
  color: var(--utility-accent);
}

.mail-results-head h2 {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  font: 700 clamp(24px, 3vw, 34px) monospace;
  letter-spacing: -1.5px;
}

.mail-score {
  min-width: 150px;
  text-align: right;
}

.mail-score strong {
  display: block;
  color: #426fd0;
  font-size: 30px;
  line-height: 1;
}

.mail-score span,
.mail-source-count {
  display: block;
  margin-top: 5px;
  color: #6f7772;
  font-size: 10px;
}

.health-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.health-summary span {
  padding: 7px 9px;
  border: 1px solid #d9ddd5;
  border-radius: 8px;
  background: #f7f8f4;
  color: #626a65;
  font-size: 10px;
}

.health-summary strong {
  color: #26322d;
  font-size: 13px;
}

.diagnostic-list {
  display: grid;
  gap: 8px;
}

.diagnostic-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.diagnostic-item {
  min-width: 0;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  border: 1px solid #dde0da;
  border-left: 4px solid #87918b;
  border-radius: 9px;
  background: #fff;
}

.diagnostic-item.pass {
  border-left-color: #3d8b55;
}

.diagnostic-item.warning {
  border-left-color: #c08b24;
}

.diagnostic-item.error {
  border-left-color: #b54a4a;
}

.diagnostic-item.info {
  border-left-color: #5274bc;
}

.diagnostic-status {
  padding: 5px 7px;
  border-radius: 999px;
  background: #edf0eb;
  color: #59635d;
  text-align: center;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.diagnostic-item.pass .diagnostic-status {
  background: #dcefe0;
  color: #377446;
}

.diagnostic-item.warning .diagnostic-status {
  background: #f4ebcf;
  color: #80651f;
}

.diagnostic-item.error .diagnostic-status {
  background: #f5dede;
  color: #963737;
}

.diagnostic-item.info .diagnostic-status {
  background: #e1e8f6;
  color: #3e5f9f;
}

.diagnostic-item h3 {
  margin: 1px 0 4px;
  font-size: 12px;
}

.diagnostic-item p {
  margin: 0;
  overflow-wrap: anywhere;
  color: #68706b;
  font-size: 10px;
  line-height: 1.5;
}

.mail-section {
  margin-top: 28px;
}

.mail-section-heading {
  padding: 0 10px 10px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.mail-section-heading h3 {
  margin: 0;
  font-size: 15px;
}

.mail-section-heading span {
  color: #747b77;
  font-size: 10px;
}

.mail-table-wrap {
  overflow-x: auto;
  border: 1px solid #d8d8d0;
  border-radius: 10px;
  background: #fff;
}

.mail-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 11px;
}

.mail-table th,
.mail-table td {
  padding: 13px 15px;
  border-bottom: 1px solid #e3e3dc;
  text-align: left;
  vertical-align: top;
}

.mail-table thead th {
  background: #eef0ea;
  color: #68706b;
  font-size: 9px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.mail-table tbody tr:last-child th,
.mail-table tbody tr:last-child td {
  border-bottom: 0;
}

.mail-table code {
  overflow-wrap: anywhere;
  white-space: normal;
}

.mail-priority {
  min-width: 30px;
  margin-right: 6px;
  padding: 3px 5px;
  display: inline-block;
  border-radius: 5px;
  background: #e8ebf5;
  color: #45567e;
  text-align: center;
  font-size: 9px;
}

.spf-tree {
  display: grid;
  gap: 7px;
}

.spf-node {
  margin-left: min(calc(var(--spf-depth) * 24px), 144px);
  padding: 13px 15px;
  border: 1px solid #dce0d8;
  border-left: 4px solid #5f78bd;
  border-radius: 8px;
  background: #fff;
}

.spf-node.has-error {
  border-left-color: #b54a4a;
}

.spf-node-heading {
  margin-bottom: 7px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.spf-node-heading strong {
  overflow-wrap: anywhere;
  font: 700 12px monospace;
}

.spf-node-heading span {
  color: #747b77;
  font-size: 9px;
}

.spf-node code,
.spf-node p {
  margin: 0;
  overflow-wrap: anywhere;
  color: #58615c;
  font-size: 10px;
  line-height: 1.5;
}

.mail-detail-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mail-detail-grid details {
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid #d8d8d0;
  border-radius: 9px;
  background: #fff;
}

.mail-detail-grid summary {
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.mail-detail-grid code,
.mail-detail-grid pre {
  max-width: 100%;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 10px;
  line-height: 1.5;
}

.mail-detail-grid p {
  margin: 8px 0 0;
  color: #6f7772;
  font-size: 10px;
}

.mail-detail-wide {
  grid-column: 1 / -1;
}

.mail-policy-link {
  color: #426fd0;
  font-size: 10px;
  font-weight: 800;
  text-underline-offset: 3px;
}

.mail-disclaimer {
  margin: 18px 10px 0;
  color: #6f7772;
  font-size: 10px;
  line-height: 1.6;
}

.header-analyzer-panel,
.dmarc-report-panel {
  max-width: 900px;
}

.mail-source-input {
  min-height: 300px;
}

.mail-fact-grid {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mail-fact-grid article,
.report-summary-grid article {
  min-width: 0;
  padding: 15px;
  border: 1px solid #dfe2dc;
  border-radius: 9px;
  background: #fff;
}

.mail-fact-grid span,
.report-summary-grid span {
  display: block;
  margin-bottom: 7px;
  color: #707873;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.mail-fact-grid strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 11px;
}

.mail-file-drop {
  min-height: 220px;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border: 2px dashed #b8c1d8;
  border-radius: 13px;
  background: #f7f8fc;
  text-align: center;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.mail-file-drop:hover,
.mail-file-drop.is-dragging {
  border-color: #5578cd;
  background: #eef2fb;
}

.mail-file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.mail-file-drop strong {
  color: #344469;
  font-size: 17px;
}

.mail-file-drop span {
  color: #65708b;
  font-size: 11px;
}

.mail-file-drop small {
  color: #818782;
  font-size: 9px;
}

.report-summary-grid {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.report-summary-grid strong {
  color: #355fb9;
  font-size: 25px;
}

@media (max-width: 780px) {
  .mail-tool-grid,
  .diagnostic-grid,
  .mail-detail-grid {
    grid-template-columns: 1fr;
  }

  .mail-detail-wide,
  .mail-form-wide {
    grid-column: auto;
  }

  .mail-form-grid,
  .mail-domain-fields {
    grid-template-columns: 1fr;
  }

  .mail-results {
    padding: 28px 18px 30px;
  }

  .mail-results-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .mail-score {
    min-width: 0;
    text-align: left;
  }

  .health-summary {
    justify-content: flex-start;
  }

  .mail-fact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .report-summary-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .mail-input-row,
  .mail-fact-grid {
    grid-template-columns: 1fr;
  }

  .diagnostic-item {
    grid-template-columns: 68px minmax(0, 1fr);
    padding: 12px;
  }

  .spf-node {
    margin-left: min(calc(var(--spf-depth) * 10px), 40px);
  }

  .spf-node-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

.dns-tool-page {
  --utility-accent: #346f87;
}

.dns-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 100px 150px;
  gap: 8px;
}

.dns-input-row input,
.dns-input-row select,
.dns-selector-field input {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d8d8d0;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font: 13px monospace;
}

.dns-input-row select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%2336415f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 12px;
  font-family: inherit;
}

.dns-dkim-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.dns-dkim-chevron {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.dns-dkim-toggle[aria-expanded="true"] .dns-dkim-chevron {
  transform: translateY(2px) rotate(225deg);
}

.dns-dkim-toggle:focus-visible {
  outline: 3px solid rgb(52 111 135 / 28%);
  outline-offset: 3px;
}

.dns-input-row input:focus,
.dns-input-row select:focus,
.dns-selector-field input:focus {
  border-color: #346f87;
  box-shadow: 0 0 0 3px rgb(52 111 135 / 14%);
}

.dns-input-row .primary-button {
  min-width: 0;
  border-color: #346f87;
  background: #346f87;
}

.dns-selector-field {
  margin-top: 18px;
}

.dns-selector-field input {
  display: block;
  max-width: 360px;
  margin-top: 8px;
}

.dns-input-row .primary-button:hover:not(:disabled) {
  border-color: #3e829e;
  background: #3e829e;
}

.dns-results {
  margin-top: 18px;
  padding: 38px 42px 34px;
  border: 1px solid #d0dadd;
  border-radius: 18px;
  background: rgb(255 255 255 / 86%);
  color: var(--ink);
  box-shadow: 0 18px 48px rgb(28 75 92 / 9%);
}

.dns-results-head {
  padding: 0 10px 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.dns-results-head .kicker {
  color: var(--utility-accent);
}

.dns-results-head h2 {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  font: 700 clamp(24px, 3vw, 34px) monospace;
  letter-spacing: -1.5px;
}

.dns-results-summary {
  min-width: 140px;
  text-align: right;
}

.dns-results-summary strong {
  display: block;
  color: #346f87;
  font-size: 30px;
  line-height: 1;
}

.dns-results-summary span {
  display: block;
  margin-top: 5px;
  color: #6f7772;
  font-size: 10px;
}

.dns-result-list {
  display: grid;
  gap: 10px;
}

.dns-result-section {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9dfdf;
  border-left: 4px solid #628798;
  border-radius: 10px;
  background: #fff;
}

.dns-result-section.dns-result-empty {
  border-left-color: #9a9f99;
}

.dns-result-section.dns-result-not-found,
.dns-result-section.dns-result-error {
  border-left-color: #b54a4a;
}

.dns-result-heading {
  min-height: 58px;
  padding: 10px 12px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f5f7f5;
}

.dns-result-heading > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.dns-record-type {
  color: #263b43;
  font: 800 15px monospace;
}

.dns-result-status {
  padding: 5px 7px;
  border-radius: 999px;
  background: #dcece6;
  color: #39705b;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.dns-result-empty .dns-result-status {
  background: #e8e9e5;
  color: #666d68;
}

.dns-result-not-found .dns-result-status,
.dns-result-error .dns-result-status {
  background: #f5dede;
  color: #963737;
}

.terminal-command-button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #c8d5d9;
  border-radius: 7px;
  background: #fff;
  color: #315f70;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.terminal-command-button:hover {
  border-color: #8dabb6;
  background: #eef5f6;
}

.terminal-command-button:focus-visible {
  outline: 3px solid rgb(52 111 135 / 22%);
  outline-offset: 2px;
}

.dns-result-message {
  margin: 0;
  padding: 15px 16px;
  border-top: 1px solid #e3e6e3;
  color: #68706b;
  font-size: 11px;
  line-height: 1.55;
}

.dns-table-wrap {
  overflow-x: auto;
  border-top: 1px solid #e1e5e3;
}

.dns-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 11px;
}

.dns-table th,
.dns-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e6e8e5;
  text-align: left;
  vertical-align: top;
}

.dns-table thead th {
  background: #edf1ef;
  color: #68706b;
  font-size: 9px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.dns-table tbody tr:last-child td {
  border-bottom: 0;
}

.dns-table td:first-child {
  width: 25%;
}

.dns-table td:nth-child(2) {
  width: 100px;
}

.dns-table td:last-child {
  width: 90px;
  white-space: nowrap;
}

.dns-table code {
  overflow-wrap: anywhere;
  white-space: normal;
}

.dns-chain-step {
  margin-right: 5px;
  padding: 3px 5px;
  display: inline-block;
  border-radius: 5px;
  background: #e4edf0;
  color: #315f70;
  font-size: 8px;
  font-weight: 800;
}

.dns-disclaimer {
  margin: 18px 10px 0;
  color: #6f7772;
  font-size: 10px;
  line-height: 1.6;
}

.dns-terminal-modal .flexmodal-title {
  color: #263b43;
  font-size: 16px;
  font-weight: 800;
}

.dns-terminal-modal .flexmodal-content {
  overflow-y: auto;
}

.dns-terminal-modal .flexmodal-footer {
  justify-content: flex-end;
}

.dns-terminal-content > p {
  margin: 0 0 18px;
  color: #68706b;
  font-size: 11px;
  line-height: 1.6;
}

.dns-command-block + .dns-command-block {
  margin-top: 14px;
}

.dns-command-heading {
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dns-command-heading h3 {
  margin: 0;
  color: #394b52;
  font-size: 11px;
}

.dns-command-heading button {
  padding: 5px 8px;
  border: 1px solid #c8d5d9;
  border-radius: 6px;
  background: #fff;
  color: #315f70;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.dns-command-heading button:hover {
  background: #eef5f6;
}

.dns-command-block pre {
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  border: 1px solid #d7dfdf;
  border-radius: 8px;
  background: #f2f5f4;
  color: #243b43;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 700px) {
  .dns-input-row {
    grid-template-columns: minmax(0, 1fr) 110px;
  }

  .dns-input-row > input {
    grid-column: 1 / -1;
  }

  .dns-input-row .primary-button {
    grid-column: 1 / -1;
  }

  .dns-results {
    padding: 28px 18px 30px;
  }

  .dns-results-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .dns-results-summary {
    min-width: 0;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .dns-input-row {
    grid-template-columns: 1fr;
  }

  .dns-input-row .primary-button {
    grid-column: auto;
  }

  .dns-result-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .terminal-command-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.text-diff-page .utility-page {
  --utility-accent: #6a50b5;
  background:
    radial-gradient(circle at 90% 5%, rgb(106 80 181 / 11%), transparent 28%),
    radial-gradient(circle at 12% 52%, rgb(44 122 104 / 7%), transparent 30%),
    var(--paper);
}

.text-diff-page .utility-workspace.text-diff-layout {
  width: min(100%, 1600px);
  padding: 32px 0 80px;
}

.text-diff-heading {
  max-width: none;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.text-diff-icon {
  margin-right: 9px;
  flex: none;
  fill: none;
  stroke: var(--utility-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.text-diff-heading .kicker {
  white-space: nowrap;
}

.text-diff-heading-separator {
  margin: 0 8px;
  color: var(--utility-accent);
  font-size: 13px;
  font-weight: 800;
}

.text-diff-page .text-diff-heading h1 {
  margin: 0;
  color: #59647e;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.8px;
}

.text-diff-shell {
  overflow: hidden;
  border: 1px solid #cfd4df;
  border-radius: 15px;
  background: rgb(255 255 255 / 91%);
  box-shadow: 0 22px 58px rgb(48 53 83 / 11%);
}

.text-diff-commandbar,
.text-diff-results-header {
  min-height: 62px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #dfe3eb;
  background: #f7f7f3;
}

.text-diff-primary-actions,
.text-diff-view-actions,
.text-diff-result-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.text-diff-commandbar button,
.text-diff-panel-header button,
.text-diff-result-actions button,
.text-diff-collapsed-row button {
  min-height: 34px;
  padding: 0 12px;
  cursor: pointer;
  border: 1px solid #c8cfdd;
  border-radius: 7px;
  background: #fff;
  color: #46516b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.45px;
}

.text-diff-commandbar button:hover,
.text-diff-panel-header button:hover,
.text-diff-result-actions button:hover,
.text-diff-collapsed-row button:hover {
  border-color: #9684ca;
  background: #f4f1fb;
  color: #493484;
}

.text-diff-commandbar button:focus-visible,
.text-diff-panel-header button:focus-visible,
.text-diff-result-actions button:focus-visible,
.text-diff-collapsed-row button:focus-visible,
.text-diff-options select:focus-visible,
.text-diff-option-controls input:focus-visible,
.text-diff-input-panel textarea:focus-visible,
.text-diff-result-viewport:focus-visible {
  outline: 3px solid rgb(106 80 181 / 28%);
  outline-offset: 2px;
}

.text-diff-commandbar button:disabled,
.text-diff-result-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.text-diff-commandbar .text-diff-primary-button,
.text-diff-view-actions button.active {
  border-color: #6047a4;
  background: #6a50b5;
  color: #fff;
}

.text-diff-commandbar .text-diff-primary-button:hover,
.text-diff-view-actions button.active:hover {
  border-color: #4e388c;
  background: #5b439f;
  color: #fff;
}

.text-diff-input-grid {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  background: #f1f2ef;
}

.utility-panel.text-diff-input-panel {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border-color: #d4d9e2;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.text-diff-panel-header {
  min-height: 58px;
  padding: 10px 13px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #e0e4eb;
  background: #fbfbf8;
}

.text-diff-panel-header > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.text-diff-panel-header .field-label,
.text-diff-results-header .field-label,
.text-diff-algorithm-field .field-label {
  margin: 0;
  color: #6c7590;
}

.text-diff-panel-header span {
  overflow: hidden;
  color: #747c89;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-diff-editor-dropzone {
  position: relative;
  min-height: 230px;
}

.text-diff-input-panel textarea {
  width: 100%;
  min-height: 230px;
  max-height: 55vh;
  padding: 16px;
  display: block;
  resize: vertical;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: #fff;
  color: #26313a;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.6;
  tab-size: 4;
  white-space: pre;
}

.text-diff-input-panel textarea:focus-visible {
  outline-offset: -3px;
}

.text-diff-drop-overlay {
  position: absolute;
  inset: 10px;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
  border: 2px dashed #735db1;
  border-radius: 9px;
  background: rgb(246 243 253 / 96%);
  color: #4b397e;
  font-size: 11px;
}

.text-diff-drop-overlay span {
  color: #766b91;
  font-size: 9px;
}

.text-diff-editor-dropzone.is-file-dragover .text-diff-drop-overlay {
  display: flex;
}

.text-diff-input-statistics {
  min-height: 32px;
  padding: 7px 14px;
  display: block;
  border-top: 1px solid #e3e6eb;
  background: #f8f8f5;
  color: #777f8a;
  font-size: 9px;
  line-height: 1.6;
  text-align: right;
}

.text-diff-options {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(280px, 410px) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 14px 20px;
  border-top: 1px solid #dfe3e9;
  border-bottom: 1px solid #dfe3e9;
  background: #fafaf7;
}

.text-diff-algorithm-field {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.text-diff-options select {
  min-width: 0;
  min-height: 36px;
  padding: 0 30px 0 10px;
  border: 1px solid #cbd2df;
  border-radius: 7px;
  background: #fff;
  color: #3f4960;
  font-size: 10px;
  font-weight: 700;
}

.text-diff-options option:disabled {
  color: #9a9fa8;
}

.text-diff-algorithm-description {
  margin: 0;
  color: #69717d;
  font-size: 10px;
  line-height: 1.55;
}

.text-diff-option-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.text-diff-option-controls label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #535d6d;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.text-diff-option-controls input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #6a50b5;
}

.text-diff-context-field select {
  min-height: 32px;
  padding-left: 8px;
}

.text-diff-results {
  background: #fff;
}

.text-diff-results-header > div:first-child {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

#text-diff-summary {
  color: #697283;
  font-size: 10px;
}

.text-diff-result-viewport {
  min-height: 360px;
  max-height: 68vh;
  overflow: auto;
  overscroll-behavior: contain;
  background: #fbfcfb;
  color: #26313a;
  scrollbar-gutter: stable;
}

.text-diff-side-grid,
.text-diff-unified-grid {
  min-width: 1040px;
  background: #fff;
}

.text-diff-side-header,
.text-diff-side-row {
  display: grid;
  grid-template-columns: 58px minmax(430px, 1fr) 58px minmax(430px, 1fr);
}

.text-diff-unified-header,
.text-diff-unified-row {
  display: grid;
  grid-template-columns: 58px 58px 30px minmax(700px, 1fr);
}

.text-diff-side-header,
.text-diff-unified-header {
  position: sticky;
  top: 0;
  z-index: 4;
  min-height: 35px;
  align-items: center;
  border-bottom: 1px solid #cdd3dc;
  background: #eff1f2;
  color: #687181;
  font-size: 9px;
  letter-spacing: 0.8px;
}

.text-diff-side-header strong,
.text-diff-unified-header strong {
  padding: 0 11px;
}

.text-diff-side-header > :nth-child(3),
.text-diff-side-row > :nth-child(3) {
  border-left: 1px solid #cfd5de;
}

.text-diff-side-row,
.text-diff-unified-row {
  min-height: 27px;
  align-items: stretch;
  border-bottom: 1px solid #eef0f2;
}

.text-diff-line-number {
  padding: 5px 9px;
  display: block;
  background: #f2f3f3;
  color: #8a919a;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  line-height: 1.65;
  text-align: right;
  user-select: none;
}

.text-diff-code {
  min-width: 0;
  min-height: 27px;
  padding: 4px 10px;
  display: block;
  color: #29333a;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.7;
  tab-size: 4;
  white-space: pre;
}

.text-diff-result-viewport[data-wrap='true'] .text-diff-code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.text-diff-prefix {
  padding: 4px 7px;
  display: block;
  color: #7f8790;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
  user-select: none;
}

.text-diff-row-delete .text-diff-code-original,
.text-diff-unified-row.text-diff-row-delete .text-diff-code,
.text-diff-unified-row.text-diff-row-delete .text-diff-prefix {
  background: #fff0ef;
}

.text-diff-row-insert .text-diff-code-modified,
.text-diff-unified-row.text-diff-row-insert .text-diff-code,
.text-diff-unified-row.text-diff-row-insert .text-diff-prefix {
  background: #eaf8ef;
}

.text-diff-row-modified .text-diff-code-original {
  background: #fff4f2;
}

.text-diff-row-modified .text-diff-code-modified {
  background: #edf9f1;
}

.text-diff-row-delete .text-diff-code-modified,
.text-diff-row-insert .text-diff-code-original {
  background:
    repeating-linear-gradient(
      -45deg,
      #f5f5f3,
      #f5f5f3 5px,
      #eeeeeb 5px,
      #eeeeeb 10px
    );
}

.text-diff-inline-delete,
.text-diff-inline-insert {
  padding: 0;
  color: inherit;
  border-radius: 2px;
}

.text-diff-inline-delete {
  background: #f4b9b4;
  text-decoration: none;
}

.text-diff-inline-insert {
  background: #ace2bd;
}

.text-diff-collapsed-row {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #dbe0e6;
  border-bottom: 1px solid #dbe0e6;
  background: #f1f3f4;
}

.text-diff-collapsed-row button {
  min-height: 25px;
  padding: 0 10px;
  border-color: transparent;
  background: transparent;
  color: #686f80;
  font-size: 9px;
}

.text-diff-change-row.is-current-change {
  position: relative;
  z-index: 2;
  box-shadow: inset 0 0 0 2px #7658ca;
}

.text-diff-eof-notice {
  margin: 0;
  padding: 9px 15px;
  border-top: 1px solid #e3c48a;
  border-bottom: 1px solid #e3c48a;
  background: #fff8e8;
  color: #79581c;
  font-size: 10px;
  font-weight: 700;
}

.text-diff-empty-state {
  margin: 0;
  padding: 90px 24px;
  color: #707987;
  font-size: 11px;
  text-align: center;
}

.text-diff-patch {
  min-width: max-content;
  min-height: 360px;
  margin: 0;
  padding: 16px 18px;
  color: #27323a;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.7;
  white-space: pre;
}

.text-diff-status {
  min-height: 39px;
  padding: 10px 18px;
  display: block;
  border-top: 1px solid #e0e4e9;
  background: #f7f7f3;
  color: #69717e;
  font-size: 10px;
  line-height: 1.7;
}

.text-diff-status[data-state='success'] {
  color: #287052;
}

.text-diff-status[data-state='warning'] {
  color: #865d1d;
}

.text-diff-status[data-state='error'] {
  color: #a33f3f;
}

@media (max-width: 1180px) {
  .text-diff-options {
    grid-template-columns: minmax(280px, 410px) minmax(0, 1fr);
  }

  .text-diff-option-controls {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .text-diff-page .utility-workspace.text-diff-layout {
    padding: 24px 6px 60px;
  }

  .text-diff-input-grid,
  .text-diff-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .text-diff-algorithm-description,
  .text-diff-option-controls {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .text-diff-page .text-diff-heading h1,
  .text-diff-heading-separator {
    display: none;
  }

  .text-diff-commandbar,
  .text-diff-results-header {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .text-diff-primary-actions,
  .text-diff-view-actions,
  .text-diff-result-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .text-diff-commandbar button,
  .text-diff-result-actions button {
    padding-right: 7px;
    padding-left: 7px;
  }

  .text-diff-input-grid {
    padding: 10px;
  }

  .text-diff-options {
    padding: 14px;
  }

  .text-diff-algorithm-field {
    grid-template-columns: 1fr;
  }

  .text-diff-option-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .text-diff-results-header > div:first-child {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}
