.tool-skip { position: fixed; top: 8px; left: 16px; z-index: 30; padding: 12px 20px; background: white; transform: translateY(-160%); }
.tool-skip:focus { transform: none; }
.tool-hero { background: var(--surface); padding: 28px 0 48px; }
.tool-back { display: block; width: fit-content; min-height: 44px; font-size: 14px; margin-bottom: 24px; }
.tool-hero h1 { font-size: clamp(36px, 4.8vw, 60px); line-height: 1.12; letter-spacing: -1.5px; margin-top: 18px; }
.tool-hero p { max-width: 700px; margin-top: 24px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.tool-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding-top: 48px; }
.tool-card { display: block; padding: 32px; border: 1px solid var(--border); border-radius: 12px; }
.tool-card:hover { background: var(--surface); border-color: var(--muted); }
.tool-card-symbol { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #edf3fa; color: var(--blue); font-size: 28px; margin-bottom: 24px; }
.tool-card h2 { font-size: 25px; line-height: 1.3; letter-spacing: -.5px; }
.tool-card p { margin-top: 16px; color: var(--muted); line-height: 1.6; }
.tool-card-link { display: block; margin-top: 24px; font-weight: 600; color: var(--blue); }
.tool-about { padding-block: 48px 64px; }
.tool-about h2,.tool-related h2 { font-size: 28px; line-height: 1.3; letter-spacing: -.5px; }
.tool-about p { max-width: 820px; margin-top: 20px; line-height: 1.7; color: var(--muted); }
.tool-about a,.tool-help a { text-decoration: underline; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 48px; padding-block: 48px; align-items: start; }
.pdf-panel { min-width: 0; border: 1px solid var(--border); border-radius: 12px; padding: 32px; }
.pdf-panel label { display: block; font-weight: 600; line-height: 1.6; margin-bottom: 12px; }
.pdf-panel input,.pdf-panel select { max-width: 100%; min-height: 44px; font: inherit; color: inherit; background: white; }
.pdf-panel input[type=file] { display: block; width: 100%; }
.file-drop { border: 2px dashed #8b98a8; border-radius: 10px; background: var(--surface); padding: 24px; }
.file-drop:focus-within,.file-drop[data-dragging=true] { border-color: var(--blue); background: #edf3fa; }
.file-drop[aria-disabled=true] { opacity: .6; }
.pdf-panel input::file-selector-button { min-height: 44px; padding: 8px 14px; margin-right: 8px; color: var(--ink); border: 1px solid var(--border); background: var(--surface); border-radius: 6px; cursor: pointer; }
.pdf-panel input[type=text],.pdf-panel select { width: 100%; padding: 10px 12px; border: 1px solid #8b98a8; border-radius: 6px; }
.pdf-panel p { font-size: 14px; line-height: 1.7; color: var(--muted); margin-top: 12px; }
#file-list { list-style: none; padding: 0; margin: 24px 0; }
#file-list li { padding: 16px 0; border-bottom: 1px solid var(--border); }
#file-list span { display: block; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; }
#file-list li div { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pdf-panel button:not(.button) { min-height: 44px; padding: 8px 12px; background: white; border: 1px solid #8b98a8; border-radius: 6px; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.pdf-panel fieldset { border: 0; margin: 24px 0; padding: 0; min-width: 0; }
.pdf-panel legend { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.pdf-panel select { margin-top: 0; }
.pdf-panel label[for=rotation] { margin-top: 24px; }
.tool-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pdf-panel button:disabled { opacity: .5; cursor: not-allowed; }
.word-tool-page [hidden] { display: none !important; }
#tool-status { min-height: 48px; margin-top: 20px; }
#tool-status[data-error=true] { color: #a12820; }
#tool-output { margin-top: 20px; padding-top: 24px; border-top: 1px solid var(--border); }
.tool-help h2 { font-size: 21px; line-height: 1.4; letter-spacing: -.3px; }
.tool-help h2:not(:first-child) { margin-top: 32px; }
.tool-help ol { padding-left: 20px; margin-top: 16px; }
.tool-help li,.tool-help p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.tool-help li + li,.tool-help p { margin-top: 16px; }
.tool-related { padding-bottom: 64px; }
.tool-related nav,.tool-footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 20px; }
.tool-related a,.tool-footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.tool-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tool-footer nav { margin: 0; }
.word-online-tools p { max-width: 680px; margin: 24px 0; line-height: 1.7; color: var(--muted); }
@media(max-width:999px) { .tool-layout { grid-template-columns: 1fr; gap: 36px; } .tool-footer { flex-direction: column; align-items: start; } }
@media(max-width:599px) { .tool-cards { grid-template-columns: 1fr; padding-top: 28px; gap: 16px; } .tool-card,.pdf-panel { padding: 24px 20px; } .file-drop { padding: 20px 12px; } .tool-layout { padding-block: 28px; } .tool-hero { padding-bottom: 32px; } .tool-hero h1 { letter-spacing: -.8px; } .tool-actions { flex-direction: column; } .tool-actions button { width: 100%; } }
