:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #172b28;
  background: #f5f6f2;
  font-synthesis: none;
  --accent: #14634f;
  --soft: #e6eee3;
  --mb-muted: #57665e;
  --mb-font: inherit;
  --mb-border: #d5ddd3;
  --mb-radius: 12px;
  --mb-text: #172b28;
  --mb-surface: #fff;
  --mb-control-border: #7a8a80;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
:focus-visible {
  outline: 3px solid #d45b25;
  outline-offset: 4px;
}
a:hover {
  color: var(--accent);
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1180px, calc(100% - 64px));
  margin: auto;
}
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  background: #fff;
  z-index: 10;
  padding: 14px;
}
.skip:focus {
  top: 8px;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
  border-bottom: 1px solid #d5ddd3;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.5px;
  font-size: 22px;
}
.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #172b28;
  color: #fff;
  font-size: 25px;
}
.brand small {
  font-size: 14px;
  font-weight: 500;
  color: #57665e;
  margin-left: 6px;
}
.languages {
  position: relative;
  z-index: 3;
  font-size: 14px;
}
.languages summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.languages nav {
  position: absolute;
  right: 0;
  top: 40px;
  display: grid;
  min-width: 160px;
  padding: 8px;
  background: #fff;
  border: 1px solid #d5ddd3;
  box-shadow: 0 12px 28px #172b2812;
  border-radius: 12px;
}
.languages a {
  padding: 12px;
  text-decoration: none;
  border-radius: 6px;
}
.languages a[aria-current='page'] {
  background: var(--soft);
  color: var(--accent);
  font-weight: 700;
}
.network {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 18px 0;
}
.network a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 24px;
  text-decoration: none;
  font-size: 14px;
  min-height: 44px;
  color: #57665e;
}
.network a[aria-current='page'] {
  background: var(--soft);
  color: var(--accent);
  font-weight: 700;
}
.hero {
  padding: 38px 0 36px;
  max-width: 850px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 18px;
}
h1 {
  overflow-wrap: anywhere;
  hyphens: auto;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -2.2px;
  font-weight: 650;
  margin: 0 0 20px;
}
h1 span {
  color: var(--accent);
}
.lead {
  font-size: 19px;
  line-height: 1.65;
  color: #57665e;
  max-width: 710px;
  margin: 0;
}
.badges {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: 13px;
  color: #4b6255;
}
.badges span::before {
  content: '✓';
  margin-right: 7px;
  color: var(--accent);
}
.workspace {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding-bottom: 30px;
}
.tool-nav {
  display: grid;
  gap: 7px;
  position: sticky;
  top: 20px;
}
.tool-nav h2 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: #57665e;
  margin: 4px 12px 8px;
}
.tool-nav a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  text-decoration: none;
  padding: 15px 14px;
  border-radius: 10px;
  line-height: 1.4;
}
.tool-nav a:hover {
  background: #eaece6;
}
.tool-nav a[aria-current='page'] {
  background: var(--accent);
  color: #fff;
}
.workbench {
  background: #fff;
  border: 1px solid #d5ddd3;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 5px 12px #172b2803;
  min-width: 0;
}
.bench-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e7ebe3;
  padding-bottom: 20px;
  margin-bottom: 24px;
}
.bench-heading h2 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.35px;
  margin: 0;
}
.bench-heading span {
  font-size: 12px;
  color: #57665e;
}
form {
  display: grid;
  gap: 20px;
}
label {
  display: grid;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  min-width: 0;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #85958a;
  border-radius: 9px;
  background: #fdfefb;
  color: #172b28;
  padding: 12px 14px;
  min-height: 46px;
  min-width: 0;
}
textarea {
  resize: vertical;
  line-height: 1.6;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
}
input[type='checkbox'] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
  margin: 0;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  font-weight: 450;
}
.fields,
.compare-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.upload {
  position: relative;
  cursor: pointer;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  background: #f8faf5;
  border: 1px dashed #85958a;
  border-radius: 12px;
  padding: 28px 18px;
}
.upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
  padding: 0;
}
.upload:focus-within {
  outline: 3px solid #d45b25;
  outline-offset: 4px;
}
.filename {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 400;
}
.filename:empty {
  display: none;
}
.upload-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
  font-size: 28px;
  display: grid;
  place-items: center;
}
.hint {
  font-size: 13px;
  line-height: 1.7;
  color: #57665e;
  font-weight: 400;
  margin: 0;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.primary,
.secondary {
  border-radius: 8px;
  min-height: 46px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
}
.primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.primary:hover {
  filter: brightness(0.92);
}
.secondary {
  background: #fff;
  color: #263b33;
  border: 1px solid #85958a;
}
.secondary:hover {
  background: var(--soft);
}
.status {
  min-height: 20px;
  font-size: 14px;
  color: var(--accent);
  margin: 20px 0 0;
  line-height: 1.6;
}
.status.error {
  color: #a22d24;
}
.result {
  margin-top: 20px;
  padding-top: 25px;
  border-top: 1px solid #d5ddd3;
}
.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.result h2 {
  font-size: 17px;
  margin: 0;
}
.result pre {
  background: #f4f7ef;
  border: 1px solid #d5ddd3;
  border-radius: 10px;
  padding: 18px;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 540px;
  overflow: auto;
  margin: 16px 0 0;
}
.image-preview {
  display: block;
  max-width: 100%;
  max-height: 460px;
  object-fit: contain;
  border-radius: 8px;
  background: repeating-conic-gradient(#eee 0% 25%, #fff 0% 50%) 50%/20px 20px;
  margin: 0 auto 20px;
}
#qr-preview {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}
.clock {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(30px, 6vw, 66px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
  padding: 20px 0 26px;
  text-align: center;
  color: var(--accent);
}
.laps {
  max-height: 180px;
  overflow: auto;
  line-height: 2;
  font-variant-numeric: tabular-nums;
}
.explain {
  border-top: 1px solid #d5ddd3;
  padding: 36px 0 20px;
  margin-left: 260px;
  display: grid;
  gap: 22px;
}
.explain h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
  margin: 0 0 10px;
}
.explain p {
  color: #57665e;
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 10px;
}
.explain details {
  border-top: 1px solid #d5ddd3;
  padding-top: 22px;
}
.explain summary {
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}
.footer {
  border-top: 1px solid #d5ddd3;
  margin-top: 44px;
  padding: 26px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #57665e;
}
.footer a {
  text-decoration: none;
}
.footer p {
  margin: 0;
}
.adsterra-slot {
  min-height: 0;
}
.noscript {
  padding: 16px;
  background: #fff2d8;
  line-height: 1.6;
  font-size: 14px;
}
.site-qr {
  --accent: #65439c;
  --soft: #eee8f6;
}
.site-dev {
  --accent: #a74420;
  --soft: #f8ece1;
}
.site-text {
  --accent: #285c8c;
  --soft: #e6edf6;
}
.site-time {
  --accent: #176970;
  --soft: #e1efed;
}
@media (max-width: 900px) {
  .workspace {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .tool-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }
  .tool-nav h2 {
    width: 100%;
    margin-left: 0;
  }
  .tool-nav a {
    border: 1px solid #d5ddd3;
    padding: 10px 12px;
    font-size: 13px;
    min-height: 44px;
    align-items: center;
  }
  .tool-nav a span {
    display: none;
  }
  .explain {
    margin-left: 0;
  }
  .hero {
    padding-top: 26px;
  }
}
@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .header {
    min-height: 78px;
    gap: 12px;
  }
  .brand {
    font-size: 18px;
    gap: 8px;
  }
  .brand small {
    display: none;
  }
  .mark {
    width: 32px;
    height: 32px;
    font-size: 22px;
    border-radius: 9px;
  }
  .languages {
    font-size: 13px;
  }
  .network {
    gap: 2px;
    padding: 12px 0;
  }
  .network a {
    padding: 8px 10px;
    font-size: 13px;
  }
  .hero {
    padding: 22px 0 26px;
  }
  h1 {
    font-size: 37px;
    letter-spacing: -1.5px;
  }
  .lead {
    font-size: 16px;
    line-height: 1.7;
  }
  .badges {
    font-size: 12px;
    gap: 10px;
  }
  .workbench {
    padding: 20px 16px;
    border-radius: 14px;
  }
  .bench-heading span {
    display: none;
  }
  .fields,
  .compare-inputs {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .upload {
    padding: 22px 12px;
  }
  .footer {
    gap: 12px;
  }
  .explain {
    padding-top: 26px;
  }
  .clock {
    letter-spacing: -1px;
  }
  .result-head {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
@media print {
  .header,
  .network,
  .tool-nav,
  .adsterra-slot,
  .actions,
  .footer {
    display: none;
  }
  .workspace {
    display: block;
  }
  .wrap {
    width: 100%;
  }
  .workbench {
    border: 0;
    padding: 0;
  }
  .explain {
    margin: 0;
  }
  body {
    background: #fff;
  }
}
