.pr-tools{color:#1f2937;max-width:100%;text-align:left}.pr-tools h1{font-size:clamp(26px,4vw,36px);font-weight:700;line-height:1.2;margin:0 0 14px}.pr-tools .lead{color:#687269;margin-bottom:24px}.tool-categories{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:28px}.pr-tools button{font:inherit;padding:10px 16px;border:1px solid #d5ded7;border-radius:9px;background:#fff;color:#304b37;cursor:pointer;margin:0}.pr-tools button:hover{background:#edf5ef}.pr-tools button[aria-pressed=true],.pr-tools .tool-primary{background:#389341;color:#fff;border-color:#389341}.pr-tools button:disabled{opacity:.55;cursor:wait}.pr-tools .tool-primary:hover{background:#2b7633}.tool-card{border:1px solid #dfe5e0;border-radius:16px;padding:24px;margin-bottom:24px;background:#fff;box-shadow:0 3px 12px #152b1606}.tool-heading{display:flex;gap:14px;align-items:flex-start;margin-bottom:22px}.tool-heading>span{background:#eaf4ed;color:#389341;font-weight:700;padding:7px 10px;border-radius:8px}.pr-tools h2{font-size:22px;font-weight:600;line-height:1.3;margin:0 0 6px}.tool-heading p,.hint{font-size:13px;color:#69746b;line-height:1.5}.pr-tools .file-label{display:block;background:#f6f9f7;border:1px dashed #bdccbf;padding:16px;border-radius:10px;margin-bottom:18px;font-weight:600}.pr-tools input,.pr-tools select{font:inherit;max-width:100%;width:100%;border:1px solid #cfd8d1;padding:10px;border-radius:7px;background:white;color:#26362b;margin-top:6px;box-sizing:border-box}.pr-tools input[type=file]{border:0;background:transparent;padding:0;font-size:13px}.tool-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}.tool-fields label{font-size:13px;font-weight:600}.pr-tools .hint{margin:12px 0 18px}.preview-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}.preview-pair img{width:100%;height:220px;object-fit:contain;background:#f1f3f1}.preview-pair figure{margin:0;min-width:0}.preview-pair figcaption{font-size:13px;font-weight:600;margin-bottom:8px}.preview-pair small{display:block;color:#69746b;font-weight:400}.pr-tools .tool-download{display:inline-block;margin-top:14px;padding:10px 14px;border:1px solid #389341;border-radius:8px;color:#286d30;font-weight:600;text-decoration:none}.pr-tools [hidden]{display:none!important}.pr-tools [role=status]{font-size:14px;margin:14px 0;overflow-wrap:anywhere}.pr-tools canvas{width:100%;height:auto;display:block;touch-action:none;cursor:crosshair;background:#f1f3f1;margin:16px 0}.tool-actions{display:flex;gap:10px;flex-wrap:wrap}.crop-result{max-height:350px;max-width:100%;object-fit:contain;margin-top:15px}.pr-tools ul{list-style:none;padding:0}.pr-tools li{padding:10px 0;border-bottom:1px solid #edf0ed;overflow-wrap:anywhere}.pr-tools li a{color:#0066cc;text-decoration:underline}.pr-tools :focus-visible{outline:3px solid #2c74a8;outline-offset:3px}#tools-coming{padding:30px;border:1px dashed #bccbbf;border-radius:14px;background:#f6f9f7}@media(max-width:540px){.tool-card{padding:16px}.tool-fields,.preview-pair{grid-template-columns:1fr}.pr-tools h2{font-size:20px}.preview-pair img{height:180px}}

/* Kuvake ja otsikko samalle riville; kuvaus seuraavalle riville. */
.pr-tools .tool-heading{display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:14px;row-gap:6px;align-items:center}.pr-tools .tool-heading>div{display:contents}.pr-tools .tool-heading .tool-icon{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0}.pr-tools .tool-icon svg{display:block;width:24px!important;height:24px!important;flex-shrink:0}.pr-tools .tool-heading h2{grid-column:2;grid-row:1;margin:0}.pr-tools .tool-heading p{grid-column:2;grid-row:2;margin:0}
/* Työkalusivun sisältö ei käytä sivuston .flex-1-otsikkosääntöjä. */
.pr-tools-main{flex:1 1 0%;min-width:0}
.pr-tools #alcohol-result{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;background:transparent;padding:0}.alcohol-stat{background:#edf2f8;border:1px solid #d6e0eb;border-radius:12px;padding:14px 8px;text-align:center;min-width:0}.alcohol-stat strong{display:block;font-size:clamp(22px,4vw,30px);line-height:1.25;font-weight:700}.alcohol-stat span{display:block;font-size:clamp(11px,2.4vw,14px);font-weight:400;margin-top:5px;overflow-wrap:anywhere}
.pr-tools .alcohol-controls{display:flex;align-items:flex-start;gap:16px;margin:12px 0}.pr-tools .alcohol-controls>.alcohol-custom{flex:1;min-width:0;margin:0}.pr-tools .alcohol-controls>.tool-actions{margin-left:auto;flex-shrink:0;justify-content:flex-end}.pr-tools .bac-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.6fr);align-items:end}.pr-tools .bac-fields label{display:flex;flex-direction:column;justify-content:flex-end;min-width:0}.pr-tools #alcohol-tool .bac-fields input,.pr-tools #alcohol-tool .bac-fields select{height:56px;margin-bottom:0}@media(max-width:640px){.pr-tools .alcohol-controls{flex-wrap:wrap}.pr-tools .alcohol-controls>.alcohol-custom{flex-basis:100%}.pr-tools .bac-fields{grid-template-columns:1fr}}
.pr-tools #bac-result{white-space:normal;font-size:16px;font-weight:400;border:1px solid #d6e0eb;border-radius:16px;padding:24px}
.pr-tools #bac-result.bac-positive{background:#fff0f0;border-color:#efc4c4;color:#702525}
.pr-tools #bac-result.bac-zero{background:#eff8f0;border-color:#c7dfcb;color:#274d32}
.bac-heading{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.bac-title{font-size:22px;font-weight:750}.bac-badge{display:inline-block;padding:8px 13px;border-radius:9px;font-size:18px;line-height:1.4;font-weight:700;background:#e7ece8;color:#293c30}.bac-positive .bac-badge{background:#a82727;color:#fff}
.pr-tools .bac-explanation{margin:12px 0 20px;font-size:16px;font-weight:400}.bac-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.bac-metric{background:#ffffffb3;border:1px solid #ffffff;border-radius:12px;padding:16px;min-width:0}.bac-label{display:block;font-size:14px;line-height:1.5;margin-bottom:8px}.bac-value{display:block;font-size:clamp(24px,4vw,32px);line-height:1.2;font-weight:750}.pr-tools .bac-footnote{font-size:14px;font-weight:400;margin:18px 0 0;line-height:1.6}@media(max-width:540px){.pr-tools #bac-result{padding:18px}.bac-metrics{grid-template-columns:1fr}.bac-badge{font-size:16px}}
.pr-tools .bac-section{border-top:2px solid #dde3e8;margin-top:26px;padding-top:24px}.pr-tools .bac-section h3{font-size:22px;font-weight:600;line-height:1.4;margin:0 0 12px}.pr-tools .bac-section p{line-height:1.6}.pr-tools .bac-section select{min-height:56px;font-size:18px}.pr-tools .bac-section label{font-size:16px}.pr-tools .bac-result{white-space:pre-line;background:#edf2f8;color:#17395c;border-radius:12px;padding:20px;font-size:20px;line-height:1.5;font-weight:600;margin:18px 0}.pr-tools .bac-section details p{font-size:14px;margin:12px 0}
.pr-tools .alcohol-notice{padding:14px;background:#fff5df;color:#573b10;border-radius:10px;line-height:1.5;margin-bottom:16px}.pr-tools .alcohol-summary{background:#edf2f8;color:#17395c;font-size:22px;font-weight:600;line-height:1.5;padding:18px;border-radius:12px;margin:16px 0}.alcohol-row{display:grid;grid-template-columns:minmax(0,1fr) 56px 36px 56px;align-items:center;gap:8px;padding:14px 0;border-bottom:1px solid #dde3e8}.alcohol-label strong,.alcohol-label span{display:block}.alcohol-label strong{font-size:18px}.alcohol-label span{font-size:15px;color:#495363}.pr-tools .alcohol-row button{width:56px;height:56px;min-width:56px;padding:0;font-size:30px;font-weight:700;touch-action:manipulation;border:2px solid #b4c2d0;color:#17395c}.pr-tools .alcohol-row button:last-child{background:#174c80;color:#fff;border-color:#174c80}.pr-tools .alcohol-row button:last-child:hover{background:#10395f}.pr-tools .alcohol-row button:disabled{cursor:default}.alcohol-count{font-size:24px;text-align:center;font-variant-numeric:tabular-nums}.alcohol-custom{margin:20px 0}.alcohol-custom summary{padding:16px 0;font-size:17px;font-weight:600;cursor:pointer}.pr-tools #alcohol-tool .tool-actions button,.pr-tools #alcohol-tool button[type=submit]{min-height:56px}.pr-tools #alcohol-tool input{min-height:52px;font-size:18px}.pr-tools #alcohol-error{color:#a32222}@media(max-width:380px){.alcohol-row{grid-template-columns:minmax(0,1fr) 48px 26px 48px;gap:5px}.pr-tools .alcohol-row button{width:48px;min-width:48px}.alcohol-label strong{font-size:16px}}
.pr-tools>h1,.pr-tools>.lead{color:#fff!important}
.pr-tools .text-toolbar{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.pr-tools .text-toolbar button{font-size:13px;padding:8px 11px}
#text-editor{min-height:240px;max-height:650px;overflow:auto;border:1px solid #cfd8d1;border-radius:10px;padding:16px;background:#fff;color:#1f2937;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}#text-editor h2{font-size:23px;font-weight:600;margin:12px 0}#text-editor p{margin:0 0 8px}#text-editor ul{list-style:disc;padding-left:25px}#text-editor li{border:0;padding:0}.text-counts{display:flex;gap:20px;flex-wrap:wrap;padding:14px;background:#f2f7f3;border-radius:9px;margin:16px 0}.text-counts span{font-size:13px}#document-preview{width:100%;height:420px;border:1px solid #dce4de;background:#fff;margin:15px 0;border-radius:9px}#merge-list li{display:flex;gap:8px;align-items:center;flex-wrap:wrap}#merge-list li span{flex:1 1 160px}#merge-list button{font-size:12px;padding:6px 9px}
