:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #1b2b35;
  background: #f4f7f9;
  font-synthesis: none;
  --green: #087653;
  --border: #dce4e9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid #29a78b;
  outline-offset: 4px;
}
.topbar {
  max-width: 1440px;
  margin: auto;
  padding: 26px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 750;
  font-size: 18px;
  letter-spacing: -0.4px;
}
.brand-icon {
  background: #132e2a;
  color: white;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 20px;
}
.brand-icon span {
  color: #79e1bc;
}
nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 48px 5% 24px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 2px;
  color: var(--green);
  margin: 0 0 18px;
}
h1 {
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: 1.08;
  letter-spacing: -2.7px;
  margin: 0 0 20px;
  font-weight: 750;
}
h1 span {
  color: var(--green);
}
.intro > p:not(.eyebrow) {
  font-size: 17px;
  line-height: 1.65;
  color: #536572;
  margin: 0;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0 36px;
}
.badges span {
  font-size: 12px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 30px;
  padding: 6px 11px;
  color: #485c67;
}
.workspace {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.operations,
.editor {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px #172d3a04;
}
.operations {
  padding: 23px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
h2 {
  font-size: 16px;
  margin: 0;
  letter-spacing: -0.3px;
}
.section-heading > span {
  font-size: 12px;
  color: var(--green);
  white-space: nowrap;
  background: #eaf6f0;
  border-radius: 20px;
  padding: 4px 8px;
}
.hint {
  font-size: 14px;
  color: #5e6f79;
  margin: 10px 0 18px;
  line-height: 1.5;
}
.toggle-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #edf0f3;
  cursor: pointer;
}
.toggle-row strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.toggle-row small {
  display: block;
  font-size: 12px;
  color: #60727e;
  line-height: 1.5;
  margin-top: 3px;
}
.toggle-row input {
  position: absolute;
  right: 0;
  width: 38px;
  height: 24px;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.switch {
  width: 36px;
  height: 21px;
  background: #cbd5dc;
  border-radius: 20px;
  flex-shrink: 0;
  pointer-events: none;
  transition: background 0.15s;
}
.switch:after {
  content: '';
  display: block;
  width: 15px;
  height: 15px;
  background: white;
  border-radius: 50%;
  margin: 3px;
  box-shadow: 0 1px 3px #0002;
  transition: transform 0.15s;
}
input:checked + .switch {
  background: var(--green);
}
input:checked + .switch:after {
  transform: translateX(15px);
}
input:focus-visible + .switch {
  outline: 3px solid #29a78b;
  outline-offset: 4px;
}
.privacy {
  margin-top: 22px;
  padding: 15px;
  background: #f1f8f5;
  border-radius: 10px;
}
.privacy strong {
  font-size: 12px;
  color: #225e49;
}
.privacy p {
  font-size: 12px;
  line-height: 1.6;
  color: #4f6e60;
  margin: 6px 0 0;
}
.editor-toolbar {
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.live-label {
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}
.live-label:before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #169c71;
  margin-right: 8px;
}
button {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: white;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #3a505e;
}
button:hover {
  background: #eff5f3;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.editor-toolbar > div {
  display: flex;
  gap: 8px;
}
.text-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.text-panel {
  min-width: 0;
  padding: 22px 20px 14px;
}
.text-panel + .text-panel {
  border-left: 1px solid var(--border);
}
.output-panel {
  background: #f9fcfa;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 8px;
}
.panel-title label {
  font-size: 15px;
  font-weight: 650;
}
.panel-title span {
  font-size: 10px;
  letter-spacing: 1px;
  color: #637985;
}
textarea {
  display: block;
  width: 100%;
  height: 300px;
  resize: vertical;
  min-height: 180px;
  border: 0;
  background: transparent;
  color: #223f46;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
  line-height: 1.8;
  padding: 3px;
  tab-size: 4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
textarea::placeholder {
  color: #788a96;
}
.counts {
  font-size: 12px;
  color: #5f7380;
  margin: 18px 0 0;
}
.editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding: 16px 20px;
}
.editor-footer p {
  font-size: 12px;
  color: #526974;
  margin: 0;
  line-height: 1.5;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
  padding: 10px 16px;
  white-space: nowrap;
}
.primary:hover {
  background: #075b42;
}
.footnote {
  font-size: 12px;
  color: #5c707d;
  line-height: 1.7;
  max-width: 820px;
  margin: 22px 0;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1440px;
  margin: auto;
  padding: 22px 5% 30px;
  color: #5b707c;
  font-size: 12px;
  border-top: 1px solid var(--border);
}
@media (min-width: 1500px) {
  main {
    padding-top: 60px;
  }
}
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .text-panels {
    grid-template-columns: 1fr;
  }
  .text-panel + .text-panel {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  textarea {
    height: 190px;
  }
  .operations {
    padding: 18px;
  }
}
@media (max-width: 700px) {
  main {
    padding-top: 32px;
  }
  .topbar {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  nav {
    gap: 15px;
    font-size: 14px;
  }
  .brand {
    font-size: 16px;
    gap: 8px;
  }
  .brand-icon {
    font-size: 17px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .toggle-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
  }
  .toggle-row {
    padding: 13px 0;
  }
  .toggle-row strong {
    font-size: 14px;
  }
  .toggle-row small {
    font-size: 11px;
  }
  .privacy {
    margin-top: 16px;
  }
  .privacy p {
    margin-top: 4px;
  }
  .editor-toolbar {
    padding: 14px;
  }
  .text-panel {
    padding: 18px 16px;
  }
  .editor-footer {
    padding: 14px;
  }
  h1 {
    letter-spacing: -1.7px;
  }
  .intro > p:not(.eyebrow) {
    font-size: 15px;
  }
  .desktop-break {
    display: none;
  }
  .badges {
    margin-bottom: 25px;
  }
  .text-panel textarea {
    height: 220px;
  }
  footer {
    font-size: 11px;
  }
}
@media (max-width: 390px) {
  .toggle-list {
    grid-template-columns: 1fr;
  }
  .editor-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .topbar nav {
    gap: 10px;
  }
  .brand-icon {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
