@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root { color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(127, 174, 227, 0.08), transparent 28rem),
    linear-gradient(rgba(139, 181, 224, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 181, 224, 0.045) 1px, transparent 1px),
    #080b0f;
  background-size: auto, 54px 54px, 54px 54px, auto;
  color: #dce4ec;
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { min-width: 0; max-width: 100%; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 42px;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(139, 181, 224, 0.1);
}
.wordmark {
  color: #dce4ec;
  font-weight: 850;
  letter-spacing: -0.045em;
  text-decoration: none;
}
.wordmark span { color: #7faee3; }
.back-link {
  color: #8796a5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}
.back-link:hover, .back-link:focus-visible { color: #7faee3; }
.tool-hero { padding: clamp(62px, 9vw, 110px) 0 46px; }
.kicker {
  margin: 0 0 17px;
  color: #7faee3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3.3rem, 9vw, 7.2rem);
  letter-spacing: -0.075em;
  line-height: 0.9;
}
.lede {
  max-width: 660px;
  margin: 26px 0 0;
  color: #94a2b1;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
}
.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: #697786;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
}
.privacy-note::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7faee3;
  box-shadow: 0 0 12px rgba(127, 174, 227, 0.5);
  content: "";
}
.panel {
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid rgba(139, 181, 224, 0.13);
  border-radius: 22px;
  background: rgba(13, 18, 25, 0.88);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}
.panel + .panel { margin-top: 16px; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.panel-title {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.035em;
}
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { min-width: 0; display: grid; gap: 8px; }
.field.span-two { grid-column: 1 / -1; }
label, .field-label {
  color: #7d8b99;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
input, textarea, select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid rgba(139, 181, 224, 0.14);
  border-radius: 10px;
  outline: none;
  background: #0a0e13;
  color: #d5dee7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
input:focus, textarea:focus, select:focus { border-color: #7faee3; box-shadow: 0 0 0 3px rgba(127, 174, 227, 0.08); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.button {
  min-height: 43px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(139, 181, 224, 0.18);
  border-radius: 10px;
  background: transparent;
  color: #c2ccd6;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}
.button:hover, .button:focus-visible { border-color: #7faee3; outline: none; }
.button.primary { border-color: #7faee3; background: #7faee3; color: #0b1420; }
.button:disabled { cursor: not-allowed; opacity: 0.45; }
.output {
  min-height: 48px;
  padding: 13px 14px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(139, 181, 224, 0.11);
  border-radius: 10px;
  background: #080b0f;
  color: #7faee3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  line-height: 1.55;
}
.output.multiline { min-height: 110px; white-space: pre-wrap; }
.json-change-list { display: grid; gap: 8px; margin-top: 16px; }
.json-change {
  min-width: 0;
  display: grid;
  grid-template-columns: 74px minmax(120px, 0.55fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(139, 181, 224, 0.11);
  border-radius: 11px;
  background: rgba(139, 181, 224, 0.09);
}
.json-change > * { min-width: 0; margin: 0; padding: 12px; background: #0a0e13; }
.change-kind {
  color: #8fa0b1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.json-change.added .change-kind { color: #85d7b1; }
.json-change.removed .change-kind { color: #f3a49b; }
.json-change.changed .change-kind { color: #e4c47d; }
.change-path { overflow-wrap: anywhere; color: #8eb9e9; font-size: 0.68rem; }
.change-value { overflow: auto; color: #a5b2bf; font-size: 0.68rem; line-height: 1.5; white-space: pre-wrap; }
.change-value::before { display: block; margin-bottom: 7px; color: #61707e; content: attr(data-label); font-size: 0.55rem; letter-spacing: 0.08em; text-transform: uppercase; }
.regex-preview {
  min-height: 120px;
  padding: 16px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(139, 181, 224, 0.11);
  border-radius: 11px;
  background: #080b0f;
  color: #aab6c2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  line-height: 1.65;
  white-space: pre-wrap;
}
.regex-highlight { border-radius: 3px; background: rgba(127, 174, 227, 0.24); color: #dceafb; box-shadow: 0 0 0 1px rgba(127, 174, 227, 0.2); }
.match-list { display: grid; gap: 8px; margin-top: 16px; }
.match-card { padding: 12px 13px; border: 1px solid rgba(139, 181, 224, 0.1); border-radius: 10px; background: #0a0e13; }
.match-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #708090; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.6rem; }
.match-card code { display: block; margin-top: 8px; overflow-wrap: anywhere; color: #c2d4e6; white-space: pre-wrap; }
.match-groups { margin: 8px 0 0; color: #8292a2; font-size: 0.72rem; line-height: 1.5; }
.line-diff { display: grid; gap: 1px; overflow: hidden; border: 1px solid rgba(139, 181, 224, 0.11); border-radius: 12px; background: rgba(139, 181, 224, 0.1); }
.line-diff-row { min-width: 0; display: grid; grid-template-columns: 48px 48px 28px minmax(0, 1fr); background: #0a0e13; }
.line-diff-row.header { background: #0d141c; color: #687786; text-transform: uppercase; }
.line-diff-row.header span { color: #687786; font-size: 0.55rem; letter-spacing: 0.08em; }
.line-number, .line-marker, .line-content { min-width: 0; padding: 9px 10px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.7rem; line-height: 1.5; }
.line-number { color: #596775; text-align: right; user-select: none; }
.line-marker { color: #6f7e8d; text-align: center; user-select: none; }
.line-content { overflow-wrap: anywhere; color: #a8b5c1; white-space: pre-wrap; }
.line-diff-row.added { background: rgba(77, 148, 112, 0.13); }
.line-diff-row.added .line-marker, .line-diff-row.added .line-content { color: #91d8b3; }
.line-diff-row.removed { background: rgba(176, 77, 72, 0.13); }
.line-diff-row.removed .line-marker, .line-diff-row.removed .line-content { color: #efa59f; }
.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid rgba(139, 181, 224, 0.1); border-radius: 14px; background: rgba(139, 181, 224, 0.1); }
.result {
  min-width: 0;
  padding: 17px;
  background: #0b1016;
}
.result dt {
  margin-bottom: 7px;
  color: #6d7b89;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.result dd { margin: 0; overflow-wrap: anywhere; color: #d7e0e8; font-weight: 650; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-bottom: 40px; }
.catalog-card {
  min-height: 240px;
  padding: 25px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  border: 1px solid rgba(139, 181, 224, 0.12);
  border-radius: 20px;
  background: rgba(13, 18, 25, 0.86);
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}
.catalog-card:hover, .catalog-card:focus-visible { border-color: rgba(127, 174, 227, 0.42); outline: none; transform: translateY(-3px); }
.catalog-index { color: #7faee3; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; }
.preferred-tag {
  margin-left: 7px;
  padding: 3px 7px;
  border: 1px solid rgba(127, 174, 227, 0.25);
  border-radius: 999px;
  background: rgba(127, 174, 227, 0.08);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}
.catalog-card h2 { margin: 42px 0 0; font-size: clamp(1.6rem, 4vw, 2.5rem); letter-spacing: -0.055em; }
.catalog-card p { margin: 12px 0 0; color: #8493a2; line-height: 1.55; }
.catalog-path { margin-top: 18px; color: #7faee3; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.68rem; }
.search-wrap { margin-bottom: 18px; }
.catalog-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-button {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(139, 181, 224, 0.14);
  border-radius: 999px;
  background: transparent;
  color: #8493a2;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.64rem;
}
.filter-button:hover, .filter-button:focus-visible, .filter-button.active { border-color: rgba(127, 174, 227, 0.42); outline: none; background: rgba(127, 174, 227, 0.08); color: #7faee3; }
.recent-section { margin-bottom: 22px; }
.recent-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 10px; flex-wrap: wrap; }
.recent-head h2 { margin: 0; font-size: 0.76rem; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.recent-list { display: flex; flex-wrap: wrap; gap: 8px; }
.recent-link { padding: 9px 12px; border: 1px solid rgba(139, 181, 224, 0.12); border-radius: 9px; background: rgba(127, 174, 227, 0.035); color: #a9b8c7; font-size: 0.72rem; text-decoration: none; }
.recent-link:hover, .recent-link:focus-visible { border-color: rgba(127, 174, 227, 0.4); outline: none; color: #7faee3; }
.text-button { padding: 0; border: 0; background: transparent; color: #758391; cursor: pointer; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.62rem; text-transform: uppercase; }
.text-button:hover, .text-button:focus-visible { color: #7faee3; outline: none; }
.empty-state { padding: 30px; color: #82909e; text-align: center; }
.empty-state[hidden] { display: none; }
.inspector-details { margin-top: 18px; }
.cron-fields { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.cron-fields span { padding: 8px; border: 1px solid rgba(139, 181, 224, 0.1); border-radius: 8px; color: #6d7b89; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.6rem; text-align: center; text-transform: uppercase; }
.cron-explanation { min-height: 68px; display: flex; align-items: center; font-size: 0.82rem; }
.cron-runs { display: grid; gap: 8px; margin-top: 16px; }
.cron-run { min-width: 0; padding: 12px 13px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid rgba(139, 181, 224, 0.1); border-radius: 10px; background: #0a0e13; }
.cron-run > div { min-width: 0; display: flex; align-items: center; gap: 12px; }
.cron-run strong { overflow-wrap: anywhere; color: #bec9d4; font-size: 0.76rem; }
.cron-run-index { flex: 0 0 auto; color: #7faee3; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.62rem; }
.cron-run .button { min-height: 34px; padding: 0 11px; font-size: 0.66rem; }
.drop-zone {
  width: 100%;
  min-height: 140px;
  padding: 36px 20px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(127, 174, 227, 0.3);
  border-radius: 14px;
  background: rgba(127, 174, 227, 0.025);
  color: #8796a5;
  cursor: pointer;
  text-align: center;
}
.drop-zone.dragging { border-color: #7faee3; background: rgba(127, 174, 227, 0.07); }
.file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.check-option {
  min-height: 48px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(139, 181, 224, 0.12);
  border-radius: 10px;
  background: #0a0e13;
  color: #96a4b2;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
}
.check-option input { width: 16px; min-height: 16px; margin: 0; accent-color: #7faee3; }
.check-option:last-child { grid-column: 1 / -1; }
.check-grid.compact .check-option:last-child { grid-column: auto; }
.strength-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 13px; color: #6d7b89; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.66rem; }
.pem-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pem-block { min-width: 0; }
.pem-block.span-two { grid-column: 1 / -1; }
.pem-block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.pem-block-head .button { min-height: 34px; padding: 0 11px; font-size: 0.68rem; }
.pem-output { min-height: 280px; font-size: 0.72rem; white-space: pre; }
.notice { margin: 16px 0 0; color: #758391; font-size: 0.8rem; line-height: 1.55; }
.zone-combobox { position: relative; }
.zone-menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 20;
  width: 100%;
  max-height: 260px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid rgba(139, 181, 224, 0.2);
  border-radius: 12px;
  background: #111820;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}
.zone-option {
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #a9b8c7;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  text-align: left;
}
.zone-option:hover, .zone-option.active { background: rgba(127, 174, 227, 0.1); color: #7faee3; }
.zone-empty { padding: 14px 11px; color: #758391; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.7rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.muted { color: #758391; }
.error { color: #ff9a8e; }
.tool-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(139, 181, 224, 0.1);
  color: #64717e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.tool-footer a { color: #8493a2; text-decoration: none; }
.tool-footer a:hover, .tool-footer a:focus-visible { color: #7faee3; }
.toast {
  position: fixed;
  right: 20px;
  bottom: 72px;
  z-index: 10;
  padding: 11px 15px;
  border: 1px solid rgba(127, 174, 227, 0.24);
  border-radius: 999px;
  background: #111820;
  color: #7faee3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}
@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 1120px); padding-top: 18px; }
  .site-header { gap: 14px; }
  .back-link { min-height: 40px; display: inline-flex; align-items: center; text-align: right; }
  .tool-hero { padding: 58px 0 38px; }
  h1 { font-size: clamp(2.55rem, 13vw, 4rem); line-height: 0.94; overflow-wrap: anywhere; }
  .lede { margin-top: 20px; }
  .panel { padding: 18px; border-radius: 16px; }
  .field-grid, .catalog-grid, .result-grid { grid-template-columns: 1fr; }
  .json-change { grid-template-columns: 72px minmax(0, 1fr); }
  .json-change .change-value { grid-column: 1 / -1; }
  .line-diff-row { grid-template-columns: 38px 38px 24px minmax(0, 1fr); }
  .line-number, .line-marker, .line-content { padding: 8px 6px; font-size: 0.65rem; }
  .cron-fields { grid-template-columns: repeat(5, minmax(54px, 1fr)); overflow-x: auto; }
  .cron-run { align-items: flex-start; }
  .check-grid { grid-template-columns: 1fr; }
  .check-option:last-child { grid-column: auto; }
  .pem-grid { grid-template-columns: 1fr; }
  .pem-block.span-two { grid-column: auto; }
  .field.span-two { grid-column: auto; }
  .panel-head { align-items: flex-start; flex-direction: column; }
  .panel-head > .field { width: 100%; min-width: 0 !important; }
  .actions .button { flex: 1 1 auto; }
  .catalog-card { min-height: 210px; padding: 20px; border-radius: 16px; }
  .catalog-card h2 { margin-top: 30px; }
  .drop-zone { min-height: 120px; padding: 28px 16px; }
  .zone-menu { max-height: min(240px, 40svh); }
  .tool-footer { align-items: flex-start; flex-direction: column; }
  .toast { right: 14px; max-width: calc(100% - 76px); }
}
@media (max-width: 480px) {
  .actions { display: grid; grid-template-columns: 1fr; }
  .actions .button { width: 100%; }
  .cron-run { flex-direction: column; }
  .cron-run > div, .cron-run .button { width: 100%; }
  .strength-row { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
