:root {
  color-scheme: light;
  --paper: #f5f8fe; --white: #fff; --ink: #13233e; --muted: #465773;
  --line: #dce5f3; --blue: #074cc9; --dark: #07378e; --tint: #eaf2ff;
  --radius: 15px;
  font: 16px/1.52 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .52; }
:focus-visible { outline: 3px solid #0b61d9; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 67px; display: flex; align-items: center; gap: 31px; }
.brand { display: inline-flex; align-items: center; gap: 4px; color: #122545; white-space: nowrap; }
.brand img { width: 79px; height: 45px; object-fit: contain; }
.header nav { display: flex; align-items: center; gap: clamp(13px, 2.4vw, 32px); color: var(--ink); }
.header nav a, .header-privacy { font-size: 13px; font-weight: 700; white-space: nowrap; }
.header nav a:hover, .header-privacy:hover, .back-link:hover, .footer a:hover, .info a:hover { color: var(--blue); text-decoration: underline; }
.header-privacy { margin-left: auto; color: var(--dark); background: var(--tint); border-radius: 8px; padding: 7px 12px; display: inline-flex; align-items: center; gap: 5px; }
.skip { position: absolute; left: 12px; top: 8px; transform: translateY(-150%); z-index: 2; background: white; padding: 8px; }
.skip:focus { transform: none; }
.hero {
  text-align: center;
  border-bottom: 1px solid #e6edf8;
  background: radial-gradient(ellipse at 50% 0, #d7e9ffb0 0%, #f5f8fe00 75%),
    linear-gradient(90deg, #9fbcf117 1px, transparent 1px) center/32px 32px,
    linear-gradient(#9fbcf117 1px, transparent 1px) center/32px 32px, #f3f7fe;
}
.hero-inner { padding-block: 34px 29px; }
h1 { font-size: clamp(35px, 4.6vw, 61px); line-height: 1.06; letter-spacing: -.063em; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero p { margin: 11px auto 0; color: var(--muted); font-size: clamp(15px, 2vw, 17px); max-width: 60ch; }
h2 { font-size: clamp(24px, 3.4vw, 35px); letter-spacing: -.047em; line-height: 1.16; }
.eyebrow { color: var(--blue); letter-spacing: .14em; font-size: 11px; font-weight: 800; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 15px; border-radius: 9px; border: 1px solid transparent; font-size: 14px; font-weight: 740; text-align: center; }
.primary, .pick-file { background: var(--blue); color: white; }
.primary:hover:not(:disabled), .dropzone:hover .pick-file { background: var(--dark); }
.secondary { background: white; color: var(--dark); border-color: #c8d9f3; }
.secondary:hover:not(:disabled) { background: var(--tint); }
.text-button { background: transparent; color: var(--blue); }
.text-button:hover { text-decoration: underline; }
.catalog { padding-block: 17px 34px; scroll-margin-top: 10px; }
.catalog-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 11px; margin-bottom: 13px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter { min-height: 35px; border: 1px solid var(--line); background: white; color: var(--muted); padding: 4px 11px; border-radius: 8px; font-size: 13px; font-weight: 680; }
.filter[aria-pressed=true] { background: var(--blue); color: white; border-color: var(--blue); }
.search { display: flex; align-items: center; gap: 9px; min-width: 212px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.search input { min-height: 37px; min-width: 0; width: 100%; border: 0; background: none; color: var(--ink); }
.search:focus-within { outline: 2px solid #2673dd; outline-offset: 2px; }
.search input:focus { outline: none; }
.icon { display: block; flex: none; width: 23px; height: 23px; }
.search span, .privacy span, .header-privacy span { display: inline-flex; color: var(--blue); }
.search .icon, .privacy .icon, .header-privacy .icon { width: 16px; height: 16px; }
.tool-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.card { display: flex; flex-direction: column; align-items: start; min-height: 137px; padding: 13px 14px; background: white; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .16s, border-color .16s, transform .16s; }
.card:hover { border-color: #88b3f7; box-shadow: 0 7px 19px #08498b16; transform: translateY(-2px); }
.card-top { display: flex; align-items: start; justify-content: space-between; width: 100%; color: #62779a; font-size: 15px; }
.tile-icon {
  --mark: #b62134; --mark-bg: #fcebee;
  display: grid; place-items: center; position: relative; flex: none;
  width: 43px; height: 43px; border-radius: 10px; background: var(--mark-bg); color: var(--mark);
}
.tile-icon[data-format="docx"] { --mark: #1854b6; --mark-bg: #e7efff; }
.tile-icon[data-format="xlsx"], .tile-icon[data-format="csv"] { --mark: #196645; --mark-bg: #e6f4eb; }
.tile-icon[data-format="pptx"] { --mark: #ab4228; --mark-bg: #fcece4; }
.tile-icon[data-format="image"] { --mark: #146581; --mark-bg: #e3f3fa; }
.tile-icon[data-format="json"] { --mark: #6a44a7; --mark-bg: #f0eafd; }
.tile-icon[data-format="txt"] { --mark: #4d5872; --mark-bg: #edf0f7; }
.file-mark { width: 70%; height: 70%; display: block; }
.file-mark-label { fill: currentColor; stroke: none; font: 850 7px system-ui, sans-serif; }
.file-mark-label[data-short="true"] { font-size: 11px; }
.icon-action {
  position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center;
  width: 45%; height: 45%; border-radius: 6px; border: 1.5px solid white;
  color: white; background: var(--mark);
}
.icon-action .icon { width: 85%; height: 85%; stroke-width: 2.15; }
.card h3 { margin: 8px 0 3px; font-size: 15px; letter-spacing: -.025em; line-height: 1.23; }
.card p { font-size: 12.5px; color: var(--muted); line-height: 1.38; }
.empty { padding: 23px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.guide { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.04fr 1fr; gap: 32px; padding-block: 30px 42px; }
.guide h2 { margin-block: 5px 10px; }
.guide p, .faq p { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.faq details { padding: 9px 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-size: 14px; font-weight: 700; }
.faq p { margin: 6px 0 0; }
.footer { background: #eaf1fd; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-inner { min-height: 77px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.footer-inner strong, .footer-inner small { display: block; }
.footer-inner nav { display: flex; flex-wrap: wrap; column-gap: 18px; row-gap: 5px; }
.workspace { padding-block: 17px 35px; }
.back-link { font-size: 13px; color: var(--blue); font-weight: 750; }
.tool-heading { margin: 18px 0 22px; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: left; }
.tool-heading .tile-icon { width: 52px; height: 52px; }
.tool-heading h1 { font-size: clamp(30px, 5vw, 48px); margin: 0 0 5px; }
.tool-heading p, .help, .privacy { color: var(--muted); font-size: 13px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(245px, 1fr); gap: 12px; align-items: start; }
.panel { padding: 17px; background: white; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.panel h2 { font-size: 20px; margin: 0 0 11px; }
.dropzone { min-height: 105px; border: 1.5px dashed #a6bfe8; border-radius: 10px; background: #f7faff; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; padding: 10px; text-align: center; cursor: pointer; }
.dropzone:focus-within, .dropzone.dragging { outline: 3px solid #1b68d7; outline-offset: 3px; background: var(--tint); }
.dropzone > span, .dropzone small { color: var(--muted); font-size: 12px; }
.pick-file { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 9px 15px; border-radius: 8px; font-size: 14px; }
.pick-file .icon { width: 20px; height: 20px; }
.workspace[data-stage="select"] .workspace-grid { grid-template-columns: minmax(0, 1fr); }
.workspace[data-stage="select"] .files-panel { width: min(660px, 100%); margin-inline: auto; padding: 0; border: 0; background: none; }
.workspace[data-stage="select"] .files-panel h2, .workspace[data-stage="select"] .settings-panel { display: none; }
.workspace[data-stage="select"] .dropzone { min-height: 225px; gap: 8px; background: white; }
.workspace[data-stage="select"] .pick-file { font-size: 22px; min-height: 61px; padding-inline: clamp(15px, 4vw, 39px); }
.workspace[data-stage="select"] .pick-file .icon { width: 24px; height: 24px; }
.workspace[data-stage="result"] .files-panel, .workspace[data-stage="result"] .settings-panel { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.file-list, .page-list { list-style: none; margin: 0; padding: 0; }
.file-list li, .page-list li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.file-list li:first-child { margin-top: 5px; }
.file-meta { min-width: 0; flex: 1; display: grid; }
.file-meta strong { overflow-wrap: anywhere; font-size: 14px; }
.file-meta small { color: var(--muted); }
.row-button { min-width: 35px; min-height: 35px; padding: 4px 6px; font-size: 15px; }
#page-editor { margin-top: 11px; }
#page-editor summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.page-list { max-height: 230px; overflow: auto; padding-inline: 5px; }
.page-list li span { flex: 1; }
.field { display: grid; gap: 4px; margin-bottom: 10px; }
.field > span { font-weight: 700; font-size: 14px; }
.field input, .field select { width: 100%; min-height: 39px; border: 1px solid #b4c8e7; border-radius: 8px; background: white; padding: 6px 8px; color: var(--ink); }
.help { margin: 0 0 10px; }
.field .help { margin: 0; }
.process { width: 100%; margin-top: 4px; }
.privacy { margin-top: 10px; display: flex; align-items: center; gap: 6px; }
.result, .status { grid-column: 1 / -1; }
.status { padding: 10px 13px; background: var(--tint); border-radius: 9px; color: var(--dark); font-size: 14px; grid-row: 1; }
.status.error { background: #ffefea; color: #8b2418; }
.result { width: min(750px, 100%); margin-inline: auto; text-align: center; padding-block: 24px; }
.result-symbol { display: inline-grid; place-items: center; width: 43px; height: 43px; background: var(--tint); color: var(--blue); border-radius: 50%; font-size: 25px; font-weight: 800; margin-bottom: 9px; }
.result h2 { font-size: clamp(22px, 4vw, 33px); }
.result-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
#output-preview { margin-block: 12px 15px; }
.output-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 7px; }
.output-metrics div { display: flex; flex-direction: column-reverse; padding: 9px 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--tint); }
.output-metrics dt { color: var(--muted); font-size: 13px; }
.output-metrics dd { margin: 0; color: var(--dark); font-size: clamp(21px, 5vw, 34px); font-weight: 780; font-variant-numeric: tabular-nums; }
.output-text { max-height: 350px; overflow: auto; padding: 12px; margin: 0 0 7px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); text-align: left; font: 13px/1.55 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.preview-nav { margin: 11px 0; display: flex; align-items: center; justify-content: center; gap: 11px; }
#preview-canvas { display: grid; place-items: center; background: #eaf1fc; padding: 11px; border-radius: 9px; }
#preview-canvas canvas { display: block; max-width: 100%; height: auto; background: white; box-shadow: 0 2px 8px #183a7425; }
.related { display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; margin-top: 17px; }
.related a { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); padding: 4px 9px; border: 1px solid #cedcf3; border-radius: 7px; font-size: 12px; font-weight: 670; background: #fff; }
.related a:hover { background: var(--tint); }
.related .tile-icon, .nav-tool .tile-icon { width: 30px; height: 30px; border-radius: 7px; }
.guide-help { display: inline-block; margin-top: 12px; }
.info { width: min(1060px, calc(100% - 48px)); padding-block: 24px 46px; }
.info-crumb { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 13px; }
.info-crumb a, .info a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.info-intro { padding-block: 19px 21px; border-bottom: 1px solid var(--line); }
.info h1 { font-size: clamp(34px, 5vw, 55px); margin: 6px 0 8px; }
.info-lede { color: var(--muted); max-width: 65ch; }
.info-updated { color: var(--muted); font-size: 13px; margin-top: 10px; }
.info-updated time { font-weight: 690; }
.info-layout { display: grid; grid-template-columns: minmax(180px, 235px) minmax(0, 1fr); gap: 19px; align-items: start; margin-top: 19px; }
.info-sidebar { position: sticky; top: 15px; display: grid; gap: 10px; }
.info-sidebar nav, .info-panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.info-sidebar nav { padding: 13px; }
.info-sidebar h2 { font-size: 14px; margin-bottom: 6px; }
.info-sidebar ul { list-style: none; margin: 0; padding: 0; }
.info-sidebar a { display: block; border-radius: 6px; padding: 5px 4px; color: var(--muted); font-size: 13px; text-decoration: none; }
.info-sidebar a:hover { color: var(--blue); background: var(--tint); }
.info-panel { padding: clamp(15px, 3vw, 26px); }
.info-callout { border: 1px solid #cfdef6; border-left: 3px solid var(--blue); padding: 13px 15px; border-radius: 9px; background: #f0f6ff; margin-bottom: 16px; }
.info-callout strong { display: block; margin-bottom: 3px; color: var(--dark); }
.info-section { scroll-margin-top: 20px; }
.info-section + .info-section { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.info-section h2 { font-size: clamp(19px, 3vw, 23px); margin: 0 0 6px; }
.info-panel p, .info-steps, .info-formats dd { color: var(--muted); font-size: 14px; }
.info-panel p + p { margin-top: 6px; }
.info-steps { margin: 0; padding-left: 20px; }
.info-steps li + li { margin-top: 5px; }
.info-formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; }
.info-formats div { padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.info-formats dt { color: var(--dark); font-weight: 750; }
.info-formats dd { margin: 2px 0 0; }
.info-faq details:last-child { border-bottom: 0; }
.footer a[aria-current=page] { color: var(--dark); font-weight: 720; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 650px) {
  .info { width: calc(100% - 28px); }
  .info-layout { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .info-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 390px) { .info-sidebar, .info-formats { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1000px) { .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 800px) { .wrap { width: calc(100% - 38px); } .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .header-inner { gap: 15px; } }
@media (max-width: 620px) {
  .wrap { width: calc(100% - 28px); } .header-inner { min-height: 56px; gap: 9px; }
  .brand img { width: 61px; height: 38px; } .header nav { margin-left: auto; gap: 9px; }
  .header nav a { font-size: 12px; }
  .hero-inner { padding-block: 26px 20px; } .hero p { max-width: 36ch; } .catalog { padding-top: 12px; }
  .catalog-controls { flex-direction: column; align-items: stretch; } .search { min-width: 0; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .card { min-height: 130px; padding: 10px; }
  .guide, .workspace-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .footer-inner { padding-block: 10px; flex-direction: column; align-items: flex-start; } .footer-inner nav { column-gap: 11px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { transition: none !important; } }

/* Brand mark, navigation, and catalog */
.header { position: relative; z-index: 5; }
.header-inner { position: relative; gap: 22px; }
.brand-mark { position: relative; display: block; width: 75px; height: 35px; overflow: hidden; }
.brand .brand-mark img { position: absolute; width: 102px; max-width: none; height: auto; left: -13px; top: -2px; }
.header nav { align-self: stretch; gap: 6px; }
.nav-menu { display: flex; align-items: stretch; position: relative; }
.nav-menu:first-child { position: static; }
.nav-trigger { display: flex; align-items: center; gap: 5px; min-height: 41px; padding: 0 12px; border: 0; background: transparent; color: var(--ink); font-size: 13px; font-weight: 740; border-radius: 7px; white-space: nowrap; }
.nav-trigger:hover, .nav-trigger[aria-expanded=true] { color: var(--blue); background: #f0f5ff; }
.nav-trigger[aria-expanded=true] .chevron { transform: rotate(180deg); }
.chevron { width: 13px; height: 13px; }
.nav-dropdown { position: absolute; top: 100%; left: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(165px,1fr); gap: 13px; width: max-content; max-width: min(90vw, 660px); max-height: min(70vh, 480px); overflow: auto; overscroll-behavior: contain; padding: 14px; border: 1px solid #d7e4f7; border-radius: 0 0 13px 13px; background: white; box-shadow: 0 15px 30px #15356c22; }
.nav-dropdown.mega-menu { left: 0; right: 0; width: 100%; max-width: none; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.nav-column { min-width: 0; display: grid; align-content: start; gap: 2px; }
.header nav .nav-column a { display: block; white-space: normal; border-radius: 6px; padding: 6px 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.header nav .nav-column a.nav-tool { display: flex; align-items: center; gap: 8px; min-height: 38px; padding-block: 4px; }
.header nav .nav-column a:hover { color: var(--blue); background: var(--tint); text-decoration: none; }
.header nav .nav-column .nav-category { color: var(--dark); font-weight: 820; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 4px; border-radius: 6px 6px 0 0; }
.header nav .nav-column .nav-more { color: var(--blue); font-weight: 750; }
.header nav .nav-all {
  grid-column: 1 / -1; justify-self: end; color: var(--blue);
  padding: 7px 10px; border-radius: 7px; background: var(--tint);
}
.hero-inner { padding-block: 34px 32px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; color: var(--dark); font-size: 11px; font-weight: 850; letter-spacing: .14em; }
.hero-kicker span { width: 7px; height: 7px; border-radius: 50%; background: #1379e8; box-shadow: 0 0 0 4px #dceaff; }
.hero-notes { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; color: var(--dark); font-size: 12px; font-weight: 680; }
.hero-notes span { background: #ffffffb0; border: 1px solid #d9e7fa; border-radius: 999px; padding: 4px 10px; }
.catalog { padding-block: 23px 37px; }
.catalog-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.catalog-label h2 { font-size: 28px; }
.catalog-label > span, .catalog-heading > span { color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.catalog-controls { background: white; border: 1px solid var(--line); border-radius: 11px; padding: 8px; margin-bottom: 20px; }
.catalog-list { display: grid; gap: 21px; }
.catalog-section + .catalog-section { border-top: 1px solid var(--line); padding-top: 18px; }
.catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 11px; margin-bottom: 9px; }
.catalog-heading h2 { font-size: 20px; }
.catalog-heading p { margin-top: 2px; color: var(--muted); font-size: 13px; }
.catalog-heading > span { padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; background: white; }
.tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { min-height: 118px; }
.card-arrow { color: #355e9d; }
.field textarea { font: inherit; width: 100%; min-height: 95px; border: 1px solid #b4c8e7; border-radius: 8px; padding: 8px; resize: vertical; color: var(--ink); }
.toggle { display: flex; align-items: center; gap: 7px; margin: 4px 0; color: var(--muted); font-size: 14px; }
.toggle input { accent-color: var(--blue); }
@media (max-width: 840px) {
  .header-inner { gap: 12px; } .nav-trigger { padding-inline: 9px; }
  .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .header nav { margin-left: 0; }
  .brand-mark { width: 66px; height: 32px; } .brand .brand-mark img { width: 90px; left: -12px; }
  .header-privacy { display: inline-flex; }
  .header nav .nav-menu:not(:first-child) { display: none; }
  .nav-dropdown.mega-menu { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 68vh; }
  .hero-inner { padding-block: 25px 22px; }
  .catalog { padding-top: 17px; } .catalog-controls { margin-bottom: 13px; }
  .catalog-heading p { font-size: 12px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
