:root {
  --muted: #666779;
}
body {
  font-size: 17px;
}
.header-inner {
  gap: 42px;
}
.header-actions .button {
  width: auto;
  min-height: 44px;
  white-space: nowrap;
  height: auto;
}
.header-caption {
  font-size: 14px;
  color: var(--muted);
}
.preview-banner {
  display: flex;
  justify-content: center;
  gap: 40px;
  background: #f0ebfc;
  padding: 9px 20px;
  font-size: 13px;
  color: #5c438a;
}
.preview-banner strong {
  font-size: 11px;
  letter-spacing: 1px;
  margin-right: 10px;
}
.preview-banner a {
  text-decoration: underline;
  white-space: nowrap;
}
.base-page {
  padding-top: 24px;
  padding-bottom: 46px;
  max-width: 1328px;
}
.breadcrumbs {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 26px;
}
.tool-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.heading-group {
  display: flex;
  gap: 17px;
  align-items: center;
}
.hero-icon {
  display: grid;
  place-items: center;
  background: var(--purple-soft);
  color: var(--purple);
  width: 60px;
  height: 60px;
  border-radius: 16px;
  font:
    700 23px ui-monospace,
    monospace;
  flex-shrink: 0;
}
.title-line {
  display: flex;
  align-items: center;
  gap: 15px;
}
.title-line h1 {
  font-size: 32px;
  letter-spacing: -1px;
}
.tool-heading p {
  color: var(--muted);
  margin-top: 7px;
  font-size: 17px;
}
.free-badge {
  font-size: 11px;
  letter-spacing: 0.8px;
  font-weight: 800;
  background: #e9f5ed;
  color: #226d47;
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid #d7eadf;
}
.local-badge {
  font-size: 13px;
  color: #426a55;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.local-badge i {
  width: 7px;
  height: 7px;
  background: #3f9366;
  border-radius: 50%;
}
.workspace-nav {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.workspace-nav a {
  padding: 0 4px 14px;
  font-size: 16px;
  font-weight: 650;
  color: var(--muted);
  border-bottom: 3px solid transparent;
}
.workspace-nav a.active {
  border-color: var(--purple);
  color: var(--purple);
}
.workspace-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 5px 22px #25203906;
  overflow: hidden;
}
.tool-toolbar,
.conversion-bar {
  padding: 19px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.tool-toolbar {
  border-bottom: 1px solid var(--border);
}
.segmented {
  display: flex;
  gap: 4px;
  background: #f3f2f7;
  border-radius: 9px;
  padding: 4px;
}
.segmented button {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 650;
  min-height: 40px;
  color: var(--muted);
}
.segmented button[aria-pressed="true"] {
  background: #fff;
  color: var(--purple);
  box-shadow: 0 1px 5px #24253616;
}
.type-switch button {
  display: flex;
  gap: 9px;
  align-items: center;
}
.type-switch button:first-letter {
  font-family: monospace;
}
.toolbar-right {
  display: flex;
  gap: 24px;
  align-items: center;
}
.live-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin: 0;
}
.live-toggle input {
  accent-color: var(--purple);
  width: 17px;
  height: 17px;
}
.keyboard-hint {
  font-size: 12px;
  color: #767687;
}
.conversion-bar {
  justify-content: flex-start;
  padding-top: 16px;
  padding-bottom: 16px;
}
.mode-switch {
  background: #f0ebfc;
}
.mode-switch button[aria-pressed="true"] {
  background: var(--purple);
  color: #fff;
}
.variant-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}
.variant-label select,
.options-grid select {
  background: #fff;
  border: 1px solid #dcdbe6;
  border-radius: 8px;
  font-size: 14px;
  padding: 9px 11px;
  color: var(--ink);
  min-height: 42px;
}
.text-button {
  font-size: 14px;
  font-weight: 650;
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.conversion-bar > .text-button {
  margin-left: auto;
}
.editors {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin: 0 24px;
  border: 1px solid #dedde8;
  border-radius: 10px;
  overflow: hidden;
}
.editor-pane {
  min-width: 0;
}
.input-pane {
  border-right: 1px solid #dedde8;
}
.output-pane {
  background: #fbfafc;
  position: relative;
}
.editor-heading {
  height: 56px;
  padding: 0 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #ecebf2;
}
.editor-heading label {
  font-size: 15px;
  font-weight: 650;
}
.editor-tools {
  display: flex;
  gap: 14px;
}
.editor-tools button,
.editor-meta button {
  font-size: 13px;
  color: var(--purple);
  padding: 4px;
}
.output-state {
  font-size: 12px;
  color: var(--muted);
}
textarea {
  display: block;
  width: 100%;
  resize: vertical;
  min-height: 260px;
  height: 260px;
  max-height: 600px;
  border: 0;
  background: transparent;
  padding: 20px 17px;
  color: var(--ink);
  font:
    16px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  tab-size: 2;
  overflow-wrap: anywhere;
  border-radius: 0;
}
textarea:focus-visible {
  outline: 2px solid #ad94eb;
  outline-offset: -2px;
}
textarea::placeholder {
  color: #92909e;
}
.editor-meta {
  height: 39px;
  border-top: 1px solid #ecebf2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 17px;
  font-size: 12px;
  color: var(--muted);
  gap: 8px;
}
.output-empty {
  height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.empty-symbol {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #efebf6;
  color: #9077b8;
  font-size: 28px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.output-empty strong {
  font-size: 16px;
  font-weight: 600;
  color: #747084;
}
.output-empty p {
  font-size: 14px;
  margin-top: 8px;
  color: #8a8595;
  line-height: 1.7;
}
.action-row {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}
.action-row > div {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.action-row .button {
  font-size: 14px;
  padding: 11px 15px;
  min-height: 44px;
}
.action-row .button-primary {
  gap: 20px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.advanced {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  background: #fff;
}
.advanced summary {
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.advanced summary > span {
  float: right;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 12px;
}
.options-grid label {
  display: grid;
  gap: 7px;
  font-size: 14px;
}
.options-grid select {
  width: 100%;
  min-width: 0;
}
.advanced p {
  font-size: 13px;
  color: var(--muted);
}
.privacy-strip {
  background: #faf9fd;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 24px;
  font-size: 12px;
  color: var(--muted);
}
.privacy-strip > a,
.privacy-strip a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.privacy-strip > span:first-child {
  font-size: 24px;
  color: var(--purple);
}
#offline-ready {
  margin-left: auto;
  white-space: nowrap;
  font-size: 11px;
}
.status-box {
  margin: 15px 24px 0;
  border: 1px solid #cde4d5;
  background: #f0f8f2;
  color: #276744;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.status-box.error {
  background: #fff4f2;
  border-color: #edcdc5;
  color: #963e36;
}
.status-box.info {
  background: #f6f2fd;
  border-color: #e0d6f2;
  color: #674a96;
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
  margin-top: 24px;
}
.help-card {
  border: 1px solid var(--border);
  background: #fff;
  padding: 25px;
  border-radius: 13px;
}
.help-card.lavender {
  background: #f3effb;
  border-color: #e6ddf7;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.3px;
  color: #81728f;
  font-weight: 750;
  display: block;
  margin-bottom: 13px;
}
.help-card h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
}
.help-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0 19px;
  line-height: 1.75;
}
.help-card .text-button {
  font-size: 13px;
}
.faq {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 70px;
  margin-top: 45px;
  padding: 10px 3px;
}
.faq h2 {
  font-size: 25px;
  line-height: 1.4;
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.faq summary {
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.faq p {
  font-size: 14px;
  color: var(--muted);
  padding: 12px 0;
}
.drop-zone {
  height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  padding: 16px;
}
.drop-zone:hover,
.drop-zone.dragging {
  background: #f6f2fd;
}
.drop-zone input {
  width: 100%;
  max-width: 250px;
  font-size: 12px;
  order: 5;
}
.upload-symbol {
  background: #f0ebfc;
  color: #7047d7;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 28px;
}
.drop-zone strong {
  font-size: 17px;
}
.drop-zone > span:not(.upload-symbol) {
  font-size: 14px;
  color: var(--purple);
}
.drop-zone small {
  font-size: 12px;
  color: var(--muted);
}
#file-selection {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  gap: 12px;
}
#file-name {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
  font-size: 16px;
}
.file-symbol {
  font-size: 38px;
  color: var(--purple);
}
#file-size {
  font-size: 14px;
  color: var(--muted);
}
#image-result {
  height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  gap: 12px;
}
#image-preview {
  max-width: 100%;
  max-height: 205px;
  object-fit: contain;
  border: 1px solid #e9e4ef;
  border-radius: 7px;
}
#image-details {
  font-size: 12px;
  color: var(--muted);
}
.reading {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  max-width: 1100px;
  margin: auto;
}
.reading h2 {
  font-size: 32px;
  margin-bottom: 16px;
}
.reading .lead {
  font-size: 19px;
  color: var(--muted);
}
.reading p {
  margin: 12px 0 22px;
  line-height: 1.8;
  color: var(--muted);
  font-size: 16px;
}
.reading h3 {
  font-size: 21px;
  margin-top: 25px;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  margin: 28px 0;
}
.guide-grid article {
  background: #f8f6fc;
  border-radius: 12px;
  padding: 24px;
}
.guide-grid b {
  color: var(--purple);
  font-size: 28px;
}
.guide-grid h3 {
  font-size: 19px;
  margin-top: 15px;
}
.guide-grid p {
  font-size: 14px;
  margin-bottom: 0;
}
.catalog-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  max-width: 360px;
  position: relative;
  margin-top: 25px;
}
.catalog-card > .free-badge {
  position: absolute;
  right: 20px;
  top: 25px;
}
.catalog-card h3 {
  margin-top: 20px;
}
.catalog-card > div {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.catalog-card strong {
  color: var(--purple);
}
dialog {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 25px;
  width: min(740px, calc(100% - 32px));
  color: var(--ink);
  max-height: 90vh;
  box-shadow: 0 20px 80px #24253644;
}
dialog::backdrop {
  background: #24253666;
  backdrop-filter: blur(3px);
}
.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.modal-top h2 {
  font-size: 23px;
}
.modal-top button {
  font-size: 28px;
  min-width: 44px;
  min-height: 44px;
}
#modal-body p,
#modal-body li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}
#modal-body textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 15px 0;
  font-size: 14px;
}
#modal-body .button {
  margin-top: 12px;
  font-size: 14px;
}
#modal-body pre {
  background: #f4f1f9;
  padding: 15px;
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 200px;
  overflow: auto;
  font-size: 13px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #292437;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 60;
  max-width: 90%;
  text-align: center;
}
.footer-inner {
  min-height: 110px;
}
.footer-links {
  font-size: 13px;
}
@media (max-width: 1100px) {
  .header-caption,
  .keyboard-hint {
    display: none;
  }
  .local-badge {
    display: none;
  }
  .title-line h1 {
    font-size: 28px;
  }
  .support-grid {
    gap: 12px;
  }
  .help-card {
    padding: 20px;
  }
  .action-row .button {
    padding: 10px 12px;
  }
  .privacy-strip {
    flex-wrap: wrap;
  }
  #offline-ready {
    margin-left: 0;
  }
  .faq {
    gap: 35px;
  }
}
@media (max-width: 760px) {
  .page-container {
    padding-left: 18px;
    padding-right: 18px;
  }
  .base-page {
    padding-top: 20px;
  }
  .site-header {
    height: 69px;
  }
  .header-inner {
    padding: 0 18px;
    gap: 15px;
  }
  .brand {
    font-size: 25px;
  }
  .main-nav {
    display: none;
  }
  .header-actions .button {
    font-size: 13px;
    padding: 8px 12px;
  }
  .preview-banner {
    display: block;
    padding: 9px 18px;
    font-size: 12px;
  }
  .preview-banner strong {
    display: block;
    font-size: 10px;
  }
  .preview-banner a {
    display: none;
  }
  .breadcrumbs {
    font-size: 12px;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px;
  }
  .heading-group {
    gap: 12px;
    align-items: flex-start;
  }
  .hero-icon {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }
  .title-line {
    gap: 8px;
    flex-wrap: wrap;
  }
  .title-line h1 {
    font-size: 24px;
    line-height: 1.3;
  }
  .free-badge {
    font-size: 10px;
  }
  .tool-heading p {
    font-size: 15px;
  }
  .workspace-nav {
    gap: 21px;
    overflow: auto;
    white-space: nowrap;
  }
  .workspace-nav a {
    font-size: 14px;
  }
  .tool-toolbar {
    padding: 14px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .segmented button {
    padding: 7px 12px;
  }
  .toolbar-right {
    margin-left: 0;
  }
  .live-toggle {
    font-size: 13px;
  }
  .conversion-bar {
    padding: 14px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .variant-label {
    font-size: 12px;
    gap: 6px;
  }
  .variant-label select {
    font-size: 13px;
    max-width: 170px;
  }
  .conversion-bar > .text-button {
    margin-left: 0;
  }
  .editors {
    grid-template-columns: 1fr;
    margin: 0 14px;
  }
  .input-pane {
    border-right: 0;
    border-bottom: 1px solid #dedde8;
  }
  .editor-heading {
    padding: 0 12px;
    min-height: 50px;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .editor-heading label {
    font-size: 14px;
  }
  .output-state {
    font-size: 11px;
  }
  textarea,
  .output-empty,
  .drop-zone,
  #file-selection {
    min-height: 200px;
    height: 200px;
  }
  textarea {
    font-size: 16px;
    padding: 15px 12px;
  }
  .editor-meta {
    padding: 0 12px;
    font-size: 11px;
  }
  .action-row {
    padding: 15px 14px;
    gap: 15px;
  }
  .action-row > div {
    width: 100%;
  }
  .output-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
  }
  .output-actions #copy {
    grid-column: 1/-1;
  }
  .action-row .button {
    font-size: 13px;
    justify-content: center;
  }
  .advanced {
    padding: 14px;
  }
  .advanced summary {
    font-size: 13px;
  }
  .advanced summary > span {
    float: none;
    display: block;
    margin-top: 7px;
    font-size: 11px;
  }
  .options-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .privacy-strip {
    padding: 13px 14px;
    align-items: start;
    font-size: 12px;
  }
  .privacy-strip p {
    flex: 1;
  }
  .privacy-strip > span:last-child {
    width: 100%;
    padding-left: 28px;
  }
  .status-box {
    margin: 12px 14px 0;
    font-size: 13px;
  }
  .support-grid {
    grid-template-columns: 1fr;
  }
  .help-card {
    padding: 23px;
  }
  .faq {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 35px;
  }
  .faq h2 {
    font-size: 23px;
  }
  .reading {
    padding: 24px;
  }
  .reading h2 {
    font-size: 27px;
  }
  .reading .lead {
    font-size: 17px;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    gap: 18px;
  }
  .footer-links {
    flex-wrap: wrap;
  }
  .catalog-card {
    padding: 20px;
  }
  dialog {
    padding: 20px;
  }
  .modal-top h2 {
    font-size: 21px;
  }
}
