.pdf-word-main { padding-top: 58px; }
.pdf-word-hero { grid-template-columns: minmax(0,1fr) 245px; }
.pdf-word-visual { position: relative; width: 225px; height: 185px; }
.pdf-word-visual > span { position: absolute; left: 8px; top: 18px; width: 118px; height: 148px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: #ba6049; box-shadow: 0 20px 42px rgba(70,46,36,.15); font: 850 18px Georgia,serif; transform: rotate(-5deg); }
.pdf-word-visual > i { position: absolute; left: 104px; top: 75px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #292725; box-shadow: 0 8px 17px rgba(0,0,0,.16); font-style: normal; }
.pdf-word-visual > b { position: absolute; right: 1px; top: 33px; width: 91px; height: 115px; display: grid; place-items: center; border: 1px solid #b8cfe4; border-radius: 11px; color: #2367a3; background: #eaf4ff; box-shadow: 0 13px 27px rgba(52,44,37,.1); font: 850 32px Georgia,serif; transform: rotate(4deg); }
.pdf-word-workbench { position: relative; padding: 27px; border: 1px solid rgba(105,98,88,.2); border-radius: 28px; background: rgba(255,254,250,.86); box-shadow: 0 28px 75px rgba(54,47,37,.1), inset 0 1px #fff; backdrop-filter: blur(14px); }
.pdf-word-empty[hidden], .pdf-word-editor[hidden], #pdfWordLoading[hidden], #pdfWordProgress[hidden], #pdfWordScanWarning[hidden] { display: none; }
.pdf-word-capabilities { grid-template-columns: repeat(3,1fr); }
.pdf-word-filebar { display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid #e2ddd4; border-radius: 14px; padding: 11px 13px; background: #f7f4ee; }
.pdf-word-filebar > div { min-width: 0; display: flex; align-items: center; gap: 8px; }
.pdf-word-filebar strong { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.pdf-word-filebar span, .pdf-word-filebar small { border-radius: 7px; padding: 6px 8px; color: #777169; background: #ece8e1; font-size: 8px; }
.pdf-word-filebar label, .pdf-word-filebar button { min-height: 32px; display: inline-flex; align-items: center; border: 1px solid #d9d3ca; border-radius: 8px; padding: 0 10px; background: #fffefa; font-size: 9px; font-weight: 800; cursor: pointer; }
.pdf-word-filebar label { color: #fff; border-color: #292725; background: #292725; }
.pdf-word-analysis { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 12px; border: 1px solid #ded8cf; border-radius: 17px; padding: 17px 18px; background: linear-gradient(120deg,#f6eee9,#f5f2ec); }
.pdf-word-analysis > div:first-child > span, .pdf-word-section-heading span { color: #aa5844; font-size: 7px; font-weight: 850; letter-spacing: .15em; }
.pdf-word-analysis h3 { margin: 5px 0 3px; font-size: 16px; }
.pdf-word-analysis p { margin: 0; color: #837c73; font-size: 9px; }
.pdf-word-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; min-width: 235px; }
.pdf-word-metrics span { display: grid; gap: 4px; border-radius: 10px; padding: 10px 12px; background: rgba(255,255,255,.7); }
.pdf-word-metrics small { color: #958d84; font-size: 7px; }
.pdf-word-metrics strong { font: 750 16px Georgia,serif; }
.pdf-word-layout { display: grid; grid-template-columns: minmax(0,1fr) 315px; align-items: start; gap: 12px; margin-top: 12px; }
.pdf-word-preview-panel, .pdf-word-options { border: 1px solid #e1dcd3; border-radius: 18px; background: #fffefa; }
.pdf-word-preview-panel { min-width: 0; padding: 16px; }
.pdf-word-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 13px; }
.pdf-word-section-heading > div { display: grid; gap: 5px; }
.pdf-word-section-heading strong { font-size: 13px; }
.pdf-word-section-heading p { margin: 0; color: #999188; font-size: 8px; }
.pdf-word-preview-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.pdf-word-preview-card { min-width: 0; border: 1px solid #ded8cf; border-radius: 12px; padding: 8px; background: #f5f2ec; }
.pdf-word-preview-card canvas { width: 100%; height: 118px; display: block; object-fit: contain; border-radius: 7px; background: #fff; }
.pdf-word-preview-card > span { display: flex; justify-content: space-between; gap: 6px; margin-top: 8px; color: #716a62; font-size: 7px; font-weight: 800; }
.pdf-word-preview-card p { min-height: 32px; margin: 7px 0 0; overflow: hidden; color: #8b847b; font-size: 7px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.pdf-word-scan-warning { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; margin-top: 12px; border: 1px solid #e8c7b9; border-radius: 12px; padding: 13px; background: #fff3ed; }
.pdf-word-scan-warning b { font-size: 10px; }
.pdf-word-scan-warning span { color: #8e766b; font-size: 8px; }
.pdf-word-scan-warning a { grid-column: 2; grid-row: 1 / 3; color: #a04f3d; font-size: 8px; font-weight: 850; text-decoration: none; }
.pdf-word-options { position: sticky; top: 14px; padding: 20px; }
.pdf-word-options h3 { margin: 6px 0 0; font-size: 17px; }
.pdf-word-options > p { margin: 8px 0 17px; color: #8b857c; font-size: 8px; line-height: 1.55; }
.pdf-word-mode { display: grid; gap: 6px; border: 0; margin: 0 0 13px; padding: 0; }
.pdf-word-mode legend, .pdf-word-setting > span { display: block; margin-bottom: 7px; color: #726c64; font-size: 8px; font-weight: 800; }
.pdf-word-mode label { cursor: pointer; }
.pdf-word-mode input { position: absolute; opacity: 0; pointer-events: none; }
.pdf-word-mode label > span { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 9px; border: 1px solid #d9d3ca; border-radius: 10px; padding: 11px; background: #f6f3ed; }
.pdf-word-mode label > span > b { grid-row: 1 / 3; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #8a5748; background: #ead9d2; font: 800 12px Georgia,serif; }
.pdf-word-mode label > span > strong { font-size: 9px; }
.pdf-word-mode label > span > small { margin-top: 3px; color: #8f887f; font-size: 7px; line-height: 1.45; }
.pdf-word-mode input:checked + span { border-color: #2e2b28; box-shadow: 0 0 0 2px rgba(46,43,40,.08); background: #fff; }
.pdf-word-mode input:disabled + span { opacity: .45; cursor: not-allowed; }
.pdf-word-setting { display: grid; margin-top: 13px; }
.pdf-word-setting > span { display: flex; align-items: center; justify-content: space-between; }
.pdf-word-setting > span small { color: #a29b92; font-size: 6px; font-weight: 600; }
.pdf-word-setting > input, .pdf-word-name { height: 40px; border: 1px solid #d9d3ca; border-radius: 9px; padding: 0 10px; background: #fff; font-size: 9px; }
.pdf-word-setting > input { outline: none; }
.pdf-word-name { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; }
.pdf-word-name input { min-width: 0; border: 0; outline: 0; background: transparent; font-size: 9px; }
.pdf-word-name b { color: #aaa39a; font-size: 7px; }
.pdf-word-range-error { min-height: 0; margin: 5px 0 0; color: #ba4934; font-size: 7px; }
.pdf-word-range-error:empty { display: none; }
.pdf-word-mode-note { margin: 13px 0 10px; border-radius: 9px; padding: 10px 11px; color: #7d7169; background: #f1ede6; font-size: 7px; line-height: 1.55; }
@media (max-width: 1040px) { .pdf-word-layout { grid-template-columns: 1fr; } .pdf-word-options { position: static; } }
@media (max-width: 800px) { .pdf-word-hero { grid-template-columns: 1fr; } .pdf-word-visual { display: none; } .pdf-word-capabilities { grid-template-columns: 1fr; } .pdf-word-preview-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .pdf-word-workbench { padding: 13px; border-radius: 21px; } .pdf-word-filebar, .pdf-word-analysis, .pdf-word-section-heading { align-items: flex-start; flex-direction: column; } .pdf-word-filebar > div { flex-wrap: wrap; } .pdf-word-metrics { width: 100%; min-width: 0; } .pdf-word-preview-grid { grid-template-columns: 1fr; } .pdf-word-preview-card canvas { height: 190px; } .pdf-word-scan-warning { grid-template-columns: 1fr; } .pdf-word-scan-warning a { grid-column: 1; grid-row: auto; } }
