:root {
  color-scheme: light;
  --bg: #f5f7fc;
  --surface: #fff;
  --ink: #172340;
  --subtle: #565f77;
  --muted: #6d7690;
  --line: #e2e7f2;
  --blue: #3854de;
  --blue-hover: #2944c8;
  --blue-soft: #edf0ff;
  --shadow: 0 10px 32px #1f32600b;
  font-family: "Inter", "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
h1, h2, h3, p { margin-top: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #7487ff; outline-offset: 3px; }
::selection { color: #172340; background: #d7deff; }
[hidden] { display: none !important; }

.wrap { width: min(1184px, calc(100% - 64px)); margin-inline: auto; }
.site-header { position: relative; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 27px; }
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 11px; font-size: 1.23rem; font-weight: 760; letter-spacing: -.045em; }
.brand-mark { width: 36px; height: 36px; position: relative; display: inline-block; border-radius: 10px; background: linear-gradient(145deg, #5c73fa, #3650d7); box-shadow: 0 3px 8px #324ed33b; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; width: 12px; height: 15px; border: 1.5px solid #fff; border-radius: 3px; }
.brand-mark::before { top: 8px; left: 13px; opacity: .55; }
.brand-mark::after { top: 12px; left: 9px; background: #526cf2; }
.brand-mark i { position: absolute; width: 6px; height: 1px; top: 20px; left: 13px; z-index: 1; background: #fff; box-shadow: 0 3px #fff; }
.site-nav, .tool-nav { display: flex; align-self: stretch; }
.site-nav { gap: 20px; margin-left: auto; }
.tool-nav { gap: 13px; }
.site-nav a, .nav-home, .tool-menu-button { position: relative; display: flex; align-items: center; color: var(--subtle); font-size: .9rem; white-space: nowrap; }
.tool-menu { display: flex; position: relative; align-items: stretch; }
.tool-menu-button { border: 0; background: transparent; border-radius: 0; padding: 0 5px; gap: 7px; -webkit-tap-highlight-color: transparent; }
.site-nav a:hover, .nav-home:hover, .tool-menu-button:hover, .tool-menu-button[aria-expanded="true"], .site-nav a[aria-current], .nav-home[aria-current], .tool-menu-button.is-current { color: var(--blue); }
.site-nav a[aria-current], .nav-home[aria-current], .tool-menu-button.is-current { font-weight: 720; }
.site-nav a[aria-current]::after, .nav-home[aria-current]::after, .tool-menu-button.is-current::after { content: ""; position: absolute; right: 0; left: 0; bottom: 0; height: 2px; background: var(--blue); border-radius: 2px 2px 0 0; }
.menu-chevron { width: 6px; height: 6px; border-bottom: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.tool-menu-button[aria-expanded="true"] .menu-chevron { transform: translateY(2px) rotate(225deg); }
.tool-dropdown { position: absolute; z-index: 2; top: calc(100% - 1px); left: 0; display: grid; width: 213px; min-width: 0; gap: 3px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 32px #182b5a26; }
.tool-dropdown-pair { width: 420px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.tool-menu-section { min-width: 0; padding: 3px 4px; }
.tool-menu-section + .tool-menu-section { padding-left: 9px; border-left: 1px solid var(--line); }
.tool-menu-section h2 { color: var(--muted); font-size: .875rem; font-weight: 690; margin: 4px 6px; }
.tool-menu-link { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 5px 7px; border-radius: 7px; color: var(--ink); font-size: .875rem; line-height: 1.35; }
.tool-menu-link:hover, .tool-menu-link:focus-visible, .tool-menu-link[aria-current] { color: var(--blue); background: var(--blue-soft); }
.tool-menu-link .tool-icon { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 7px; }
.tool-menu-link .tool-icon b { transform: scale(.62); }
.account { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.account span { color: var(--muted); font-size: .84rem; }
.account .button { min-height: 38px; padding-inline: 17px; }

#app { flex: 1; padding-block: 32px 64px; }
.hero { isolation: isolate; overflow: hidden; position: relative; display: grid; align-items: center; min-height: 336px; padding: 44px 52px; border-radius: 23px; color: white; background: radial-gradient(ellipse at 99% 110%, #6958f4 0%, #4c53e8 31%, transparent 68%), linear-gradient(110deg, #25399d 0%, #344bc5 52%, #4054dd 100%); box-shadow: 0 18px 44px #3349c421; }
.hero::after { content: ""; position: absolute; z-index: -1; right: 0; top: 0; width: 66%; height: 100%; background: repeating-linear-gradient(90deg, #b8c8ff2d 0 1px, transparent 1px 36px), repeating-linear-gradient(0deg, #b8c8ff2d 0 1px, transparent 1px 36px); mask-image: linear-gradient(90deg, transparent, #0009 43%, #0006); }
.hero-copy { position: relative; z-index: 1; width: min(51%, 520px); }
.hero-label { display: flex; align-items: center; gap: 9px; color: #e0e6ff; margin-bottom: 14px; font-weight: 560; font-size: .86rem; letter-spacing: .13em; }
.hero-label::before { content: ""; width: 19px; height: 2px; background: #b4c3ff; border-radius: 2px; }
.hero h1 { font-size: clamp(2.35rem, 4.3vw, 3.72rem); letter-spacing: -.056em; line-height: 1.12; margin: 0 0 17px; font-weight: 800; }
.hero-copy p { color: #e9edff; font-size: 1rem; margin: 0 0 25px; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-actions .button { color: #273ea9; background: #fff; border-color: #fff; box-shadow: 0 5px 16px #16277231; min-height: 44px; padding-inline: 20px; }
.hero-actions .button:hover { background: #e9eeff; border-color: #e9eeff; }
.hero-note { font-size: .85rem; color: #e1e8ff; }

.hero-art { position: absolute; top: 0; right: 0; width: 55%; height: 100%; display: grid; place-items: center; pointer-events: none; }
.art-stage { position: relative; width: 468px; height: 300px; }
.orbit { position: absolute; width: 404px; height: 166px; top: 83px; left: 34px; border: 1px solid #cdd7ff62; border-radius: 50%; transform: rotate(-25deg); }
.orbit::before, .orbit::after { content: ""; position: absolute; width: 9px; height: 9px; background: #d8e5ff; border-radius: 50%; box-shadow: 0 0 13px #d4e0ff; }
.orbit::before { top: 7px; left: 78px; }
.orbit::after { right: 70px; bottom: 11px; width: 6px; height: 6px; }
.orbit-alt { top: 63px; left: 39px; transform: rotate(27deg); width: 392px; height: 179px; opacity: .48; }
.orbit-alt::after { display: none; }
.platform { position: absolute; left: 108px; top: 206px; width: 251px; height: 80px; border-radius: 50%; background: #8ea0ff89; border: 1px solid #bcccffb2; box-shadow: 0 14px 0 #3147d6, 0 15px 0 1px #8b9bfe80, 0 26px 30px #1d2d88a3, inset 0 0 26px #e2e7ff6b; transform: rotate(-8deg); }
.platform::before { content: ""; position: absolute; inset: 10px 25px; border: 1px solid #d5ddff76; border-radius: 50%; }
.paper { position: absolute; width: 133px; height: 173px; border-radius: 16px; }
.paper-back { top: 55px; left: 119px; transform: rotate(-24deg); background: linear-gradient(120deg, #a5c7ff, #657cf5 69%, #6570dd); border: 1px solid #d9e7ffaa; box-shadow: -7px 7px #5470e8, -11px 15px 24px #2336988c; }
.paper-front { top: 42px; left: 176px; transform: rotate(13deg); background: linear-gradient(145deg, #fff, #eef2ff 71%, #c5ceff); box-shadow: 7px 7px #aebcff, 13px 18px 25px #2636ab85; clip-path: polygon(-28% -24%, 73% -10%, 112% 24%, 137% 127%, -28% 127%); }
.paper-front::before { content: ""; position: absolute; width: 34px; height: 36px; top: 0; right: 0; border-radius: 0 15px 0 10px; background: linear-gradient(145deg, #c5d2fd, #e5eaff); box-shadow: -3px 4px 8px #8394d535; }
.paper-lines { position: absolute; left: 23px; top: 51px; display: grid; gap: 10px; }
.paper-lines b { display: block; width: 86px; height: 6px; border-radius: 8px; background: #c0ccfa; }
.paper-lines b:first-child { width: 51px; height: 10px; background: #647bf4; margin-bottom: 3px; }
.paper-lines b:nth-child(3) { width: 69px; }
.paper-lines b:last-child { width: 54px; background: #d1dbff; }
.floating-tag { position: absolute; min-width: 73px; height: 45px; display: grid; place-items: center; border: 1px solid #ffffff78; border-radius: 12px; color: white; font-size: 1.05rem; font-weight: 800; letter-spacing: .06em; }
.tag-pdf { left: 94px; top: 125px; transform: rotate(-14deg); background: linear-gradient(135deg, #fc8597, #ec4c70); box-shadow: 0 5px #c23766, 0 10px 24px #19288878; }
.tag-word { top: 101px; right: 84px; transform: rotate(14deg); background: linear-gradient(135deg, #7facff, #4777fd); box-shadow: 0 5px #335ce4, 0 10px 24px #19288878; }
.tag-ocr { right: 113px; top: 187px; min-width: 58px; height: 35px; font-size: .79rem; transform: rotate(-11deg); background: linear-gradient(135deg, #a99aff, #8464f9); box-shadow: 0 4px #5849cd, 0 8px 20px #23329866; }
.spark { position: absolute; width: 16px; height: 16px; background: #e4eaff; clip-path: polygon(50% 0, 60% 39%, 100% 50%, 60% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.spark-one { top: 39px; right: 73px; width: 24px; height: 24px; }
.spark-two { bottom: 68px; left: 63px; }
.spark-three { bottom: 57px; right: 48px; width: 11px; height: 11px; }

.tool-section { margin-top: 39px; scroll-margin-top: 20px; }
.section-head, .page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.section-head h2, .page-head h1 { font-weight: 770; letter-spacing: -.035em; line-height: 1.23; margin: 0; }
.section-head h2 { font-size: 1.85rem; }
.section-head p, .page-head p { margin: 5px 0 0; color: var(--subtle); }
.search { display: flex; gap: 10px; align-items: center; min-height: 43px; width: min(268px, 100%); padding-inline: 13px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; }
.search:focus-within { outline: 2px solid #7487ff; outline-offset: 2px; }
.search input { background: transparent; min-width: 0; flex: 1; border: 0; padding-block: 8px; font-size: .91rem; color: var(--ink); }
.search input:focus { outline: 0; }
.search-icon { position: relative; width: 13px; height: 13px; border: 1.7px solid #7884a0; border-radius: 50%; margin-right: 3px; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.7px; top: 9px; left: 9px; transform: rotate(46deg); border-radius: 2px; background: #7884a0; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 19px; }
.tab { border: 1px solid var(--line); background: var(--surface); color: var(--subtle); padding: 6px 15px; min-height: 37px; font-size: .89rem; border-radius: 8px; }
.tab:hover { color: var(--blue); border-color: #bac6fa; }
.tab[aria-pressed="true"] { color: #2d46c2; background: #e8edff; border-color: #d9e1ff; font-weight: 690; }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tool-card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.tool-card { padding: 18px; min-height: 145px; display: block; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.tool-card:hover { border-color: #aebdf7; box-shadow: 0 9px 24px #2844a41c; transform: translateY(-3px); }
.tool-card h3 { margin: 11px 0 3px; font-size: 1.02rem; font-weight: 750; letter-spacing: -.02em; }
.tool-card p { margin: 0; color: var(--subtle); font-size: .875rem; line-height: 1.5; }
.tool-icon { --icon-bg: #e8efff; --doc-color: #4869e8; width: 47px; height: 47px; display: grid; place-items: center; border-radius: 12px; background: var(--icon-bg); }
.tool-icon.red { --icon-bg: #ffebef; --doc-color: #d94367; }
.tool-icon.purple { --icon-bg: #f0eaff; --doc-color: #7752d3; }
.tool-icon.green { --icon-bg: #e3f5ed; --doc-color: #1e855f; }
.tool-icon.orange { --icon-bg: #fff0e5; --doc-color: #bd5b23; }
.tool-icon.teal { --icon-bg: #e1f4f6; --doc-color: #177f91; }
.tool-icon b { position: relative; display: grid; place-items: center; width: 25px; height: 30px; font-size: .53rem; line-height: 1; letter-spacing: -.03em; color: white; background: var(--doc-color); border-radius: 4px; padding-top: 4px; clip-path: polygon(0 0, 69% 0, 100% 26%, 100% 100%, 0 100%); font-weight: 760; }
.tool-icon b::before { position: absolute; top: 0; right: 0; width: 8px; height: 8px; content: ""; background: #ffffff63; border-radius: 0 0 0 2px; }
.empty { grid-column: 1 / -1; padding: 31px 20px; text-align: center; background: #fff; border: 1px dashed #cbd4eb; border-radius: 13px; color: var(--subtle); margin: 0; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 43px; padding: 8px 16px; border: 1px solid transparent; border-radius: 9px; font-size: .9rem; line-height: 1.35; font-weight: 665; white-space: nowrap; text-align: center; }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover:not(:disabled) { background: var(--blue-hover); }
.button-secondary { border-color: #d6dff9; color: #324bcf; background: #f0f3ff; }
.button-secondary:hover:not(:disabled) { background: #e6ebff; border-color: #becbfa; }
.button-quiet { border-color: var(--line); background: #fff; color: var(--subtle); }
.button-quiet:hover:not(:disabled) { border-color: #c8d3ee; color: var(--blue); }
.button-danger { background: #c83151; color: #fff; }
.button-danger:hover:not(:disabled) { background: #a82040; }
.button:disabled { opacity: .55; }
.button-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.text-link { color: var(--blue); text-decoration: underline; text-decoration-color: #9dadf5; text-underline-offset: 4px; }
.text-link:hover { color: var(--blue-hover); }

.page { width: min(100%, 880px); margin: 8px auto 0; }
.page-narrow { width: min(100%, 530px); }
.page-head { margin-bottom: 20px; align-items: center; }
.page-head h1 { font-size: clamp(1.85rem, 4vw, 2.6rem); }
.crumbs { margin-bottom: 21px; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--blue); }
.panel { padding: 24px; }
.panel h2 { margin-bottom: 13px; font-size: 1.1rem; letter-spacing: -.015em; }
.panel > :last-child { margin-bottom: 0; }
.panel + .panel { margin-top: 15px; }
.tool-title { display: flex; align-items: flex-start; gap: 14px; }
.tool-title .tool-icon { flex: 0 0 auto; margin-top: 3px; }
.quota-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px 15px; color: var(--subtle); background: #eaf0ff; border: 1px solid #dce4ff; border-radius: 10px; padding: 10px 14px; font-size: .9rem; margin-bottom: 14px; }
.quota-strip strong { color: #3047b1; }
.dropzone { min-height: 210px; display: grid; place-items: center; padding: 18px; border: 1.5px dashed #adbdf4; border-radius: 12px; background: #f8faff; text-align: center; }
.dropzone.is-over { background: #eaf0ff; border-color: var(--blue); }
.dropzone .button-row { justify-content: center; }
.dropzone p { margin: 0 0 13px; font-size: .9rem; color: var(--subtle); }
.upload-mark { width: 43px; height: 43px; border-radius: 12px; background: #e9eeff; color: var(--blue); display: grid; place-items: center; margin: 0 auto 8px; font-size: 1.42rem; font-weight: 720; }
.dropzone strong { display: block; margin-bottom: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.inline-note { margin: 12px 0 0; font-size: .87rem; color: var(--subtle); }
.action-note { font-size: .87rem; color: var(--subtle); }
.help-line { text-align: center; margin: 17px 0 0; font-size: .92rem; color: var(--subtle); }
.file-list { margin-top: 11px; display: grid; gap: 8px; }
.file-item { padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.file-item span { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.file-item small { color: var(--subtle); flex-shrink: 0; }
.file-item .button { min-height: 32px; padding: 4px 8px; font-size: .84rem; }
.tool-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.tool-controls .form-field { margin: 0; flex: 1 1 170px; }
.work-result { margin-top: 16px; background: #f1f5ff; border: 1px solid #dce5ff; border-radius: 10px; padding: 14px; overflow-wrap: anywhere; }
.work-result h2 { margin-bottom: 6px; }
.work-result p { color: var(--subtle); margin: 0 0 8px; }
.work-result :last-child { margin-bottom: 0; }
.result-preview { margin: 10px 0; white-space: pre-wrap; font-family: inherit; background: white; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }

.form-field { display: grid; gap: 6px; margin-bottom: 15px; }
.form-field label { color: var(--ink); font-weight: 670; font-size: .9rem; }
.field, select { width: 100%; min-height: 43px; color: var(--ink); background-color: #fff; border: 1px solid #d7dff0; border-radius: 8px; padding: 8px 11px; }
select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, #617394 50%), linear-gradient(135deg, #617394 50%, transparent 50%); background-position: calc(100% - 15px) center, calc(100% - 10px) center; background-size: 5px 5px; background-repeat: no-repeat; }
textarea.field { resize: vertical; min-height: 126px; }
.input-row { display: flex; align-items: stretch; gap: 8px; }
.input-row .field { min-width: 0; }
.form-error { min-height: 1.4em; margin: 7px 0; color: #b82448; font-size: .87rem; overflow-wrap: anywhere; }
.form-error:empty { min-height: 0; margin: 0; }
.tool-run { margin-top: 14px; }
.page-order p { margin: 12px 0 8px; font-size: .9rem; color: var(--subtle); }
.page-thumbnails { display: flex; flex-wrap: wrap; gap: 10px; }
.page-thumbnail { width: 86px; border: 1px solid var(--line); border-radius: 9px; background: #f7f9ff; text-align: center; padding: 7px; font-size: .86rem; }
.page-thumbnail span { width: 29px; height: 37px; display: block; margin: 0 auto 4px; border: 1px solid #ccd6fb; border-radius: 3px; background: repeating-linear-gradient(0deg, #fff 0 5px, #e8edff 5px 6px); }
.page-thumbnail .button { min-height: 27px; padding: 2px 7px; margin-top: 4px; font-size: .83rem; }
.demo-note { padding: 11px 12px; background: var(--blue-soft); border-radius: 8px; color: #394670; font-size: .87rem; }
.demo-note + form { margin-top: 18px; }

.task-card { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.task-card:first-child { padding-top: 0; }
.task-card:last-child { border-bottom: 0; padding-bottom: 0; }
.task-card .tool-icon { width: 41px; height: 41px; flex-shrink: 0; }
.task-info { flex: 1 1 auto; min-width: 0; }
.task-info h2 { font-size: .99rem; margin: 0 0 3px; overflow-wrap: anywhere; }
.task-info p { margin: 0; color: var(--subtle); font-size: .86rem; }
.task-card .button { min-height: 36px; padding: 5px 10px; font-size: .85rem; }
.state { padding: 4px 7px; background: #e6f5ed; color: #167254; border-radius: 6px; white-space: nowrap; font-size: .8rem; }
.state.inactive { background: #edf0f6; color: #545f75; }
.admin-tabs { margin-top: 14px; }
.admin-account { padding: 13px 0 9px; border-bottom: 1px solid var(--line); margin-bottom: 15px; }
.admin-account p, .admin-entry p { margin: 4px 0 0; color: var(--subtle); font-size: .9rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.admin-entry + .admin-entry { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

.qr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.qr-panel { text-align: center; }
.qr-panel + .qr-panel { margin: 0; }
.qr-placeholder { width: min(161px, 100%); aspect-ratio: 1; position: relative; margin: 0 auto 11px; border-radius: 13px; display: grid; place-items: center; background: repeating-linear-gradient(45deg, #edf1fa 0 6px, #f7f9fd 6px 12px); border: 1px dashed #bfcae2; color: #52627f; font-size: .86rem; }
.qr-placeholder b { font-weight: 650; background: #f8faff; border: 1px solid #dbe3f6; border-radius: 7px; padding: 5px 7px; }
.qr-panel p { margin: 0; color: var(--subtle); font-size: .88rem; }

.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { min-height: 73px; display: flex; align-items: center; gap: 13px; flex-wrap: wrap; color: var(--muted); font-size: .86rem; }
.footer-brand { color: var(--ink); font-weight: 720; }
.footer-inner nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.footer-inner a:hover { color: var(--blue); }

dialog { width: min(435px, calc(100% - 32px)); border: 1px solid var(--line); padding: 0; border-radius: 15px; color: var(--ink); box-shadow: 0 20px 70px #182b5a40; }
dialog::backdrop { background: #18274877; }
.dialog-content { padding: 21px; }
.dialog-content h2 { margin-bottom: 9px; font-size: 1.19rem; }
.dialog-content p { color: var(--subtle); }
.dialog-content .button-row { justify-content: flex-end; }
#toast:not(:empty) { position: fixed; z-index: 4; bottom: 18px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); width: max-content; background: #20315b; color: #fff; box-shadow: 0 5px 18px #1d2c573d; padding: 10px 14px; border-radius: 8px; font-size: .9rem; }

@media (max-width: 1000px) {
  .art-stage { transform: scale(.84); }
  .header-inner { gap: 18px; }
  .site-nav { gap: 15px; }
  .tool-nav { gap: 9px; }
  .hero { padding-inline: 36px; min-height: 322px; }
  .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .header-inner { min-height: auto; display: grid; grid-template-columns: 1fr auto auto; padding-top: 9px; gap: 5px 20px; }
  .brand { justify-self: start; }
  .tool-nav { grid-column: 1 / -1; grid-row: 2; min-height: 42px; gap: 21px; }
  .site-nav { grid-column: 2; grid-row: 1; }
  .account { grid-column: 3; grid-row: 1; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { padding-top: 12px; grid-template-columns: 1fr auto; gap: 4px 12px; }
  .brand { font-size: 1.13rem; }
  .brand-mark { width: 33px; height: 33px; }
  .tool-nav { position: relative; justify-content: space-between; min-height: 39px; gap: 7px; }
  .tool-menu { position: static; }
  .tool-dropdown { width: min(420px, 100%); }
  .tool-menu-button { padding-inline: 2px; gap: 5px; }
  .site-nav { grid-column: 1 / -1; grid-row: 3; min-height: 35px; gap: 12px; margin-left: 0; justify-content: space-between; }
  .site-nav a, .nav-home, .tool-menu-button { font-size: .86rem; }
  .account { grid-column: 2; grid-row: 1; }
  .account span { display: none; }
  #app { padding-block: 20px 42px; }
  .hero { min-height: 290px; padding: 28px 23px; border-radius: 17px; }
  .hero-copy { width: 66%; }
  .hero h1 { font-size: clamp(2.1rem, 7vw, 2.8rem); }
  .hero-copy p { font-size: .89rem; }
  .hero-art { width: 49%; opacity: .9; }
  .art-stage { margin-left: -155px; width: 468px; flex: none; transform: scale(.57); }
  .hero-actions { gap: 10px; }
  .hero-note { font-size: .81rem; }
  .tool-section { margin-top: 29px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tool-card { min-height: 132px; padding: 13px; }
  .tool-card h3 { font-size: .96rem; margin-top: 8px; }
  .tool-icon { width: 39px; height: 39px; border-radius: 9px; }
  .tool-icon b { transform: scale(.87); }
  .section-head { align-items: flex-start; }
  .section-head h2 { font-size: 1.56rem; }
  .section-head p { font-size: .88rem; }
  .search { width: min(48%, 222px); }
  .page { margin-top: 3px; }
  .panel { padding: 16px; }
  .task-card { flex-wrap: wrap; }
  .task-info { flex-basis: calc(100% - 56px); }
  .footer-inner { padding-block: 13px; gap: 6px 11px; }
  .footer-inner nav { width: 100%; margin-left: 0; }
}

@media (max-width: 470px) {
  .hero { min-height: 329px; align-items: start; padding-top: 24px; }
  .hero-copy { width: 100%; }
  .hero h1 { max-width: 245px; font-size: 2.23rem; margin-bottom: 11px; }
  .hero-copy p { max-width: 245px; margin-bottom: 18px; }
  .hero-label { margin-bottom: 10px; }
  .hero-art { inset: auto -99px 11px auto; width: 290px; height: 224px; opacity: .9; }
  .art-stage { transform: scale(.49); margin-left: -162px; margin-top: -1px; }
  .hero-actions { max-width: 158px; align-items: flex-start; flex-direction: column; }
  .hero::after { width: 100%; }
  .section-head { display: grid; grid-template-columns: 1fr; gap: 11px; margin-bottom: 12px; }
  .search { width: 100%; }
  .tabs { gap: 6px; }
  .tab { padding-inline: 10px; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 9px; }
  .file-item { flex-wrap: wrap; }
  .file-item span { flex-basis: 65%; }
  .qr-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
