/* ===================== Κειμενογράφος ===================== */
.wr-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; }
.wr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; background: rgba(255,255,255,.88); border-radius: 14px; padding: 6px 10px; box-shadow: 0 3px 10px rgba(72,96,150,.12), inset 0 0 0 2px #fff; }
.wr-group { position: relative; display: flex; align-items: center; gap: 3px; padding-right: 10px; border-right: 2px solid #e3e8f0; }
.wr-group:last-child { border-right: 0; }
.wr-btn {
  font-family: inherit; font-size: 15px; font-weight: 600; color: #37474f; background: #fff; border: 2px solid #cfd8dc; border-radius: 9px;
  min-width: 34px; height: 34px; padding: 0 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 2px; line-height: 1;
  transition: background .15s, border-color .15s, transform .1s;
}
.wr-btn small { font-size: 10px; color: #78909c; }
.wr-btn:hover { border-color: #ffb74d; transform: translateY(-1px); }
.wr-btn.on { background: #ffe082; border-color: #ff9800; }
.wr-sel { font-family: inherit; font-size: 15px; font-weight: 600; height: 34px; border: 2px solid #cfd8dc; border-radius: 9px; background: #fff; color: #37474f; padding: 0 6px; }
.wr-sel.wr-size { width: 66px; }
.wr-sel.wr-case { width: 58px; font-size: 16px; }   /* Aa πεζά/ΚΕΦΑΛΑΙΑ */
.wr-title { font-family: inherit; font-size: 16px; font-weight: 700; height: 34px; border: 2px solid #cfd8dc; border-radius: 9px; padding: 0 10px; margin-left: auto; width: 220px; user-select: text; -webkit-user-select: text; }
.wr-title:focus { outline: none; border-color: #5c6bc0; }
.wr-zoom { gap: 0; }
.wr-zoomval { font-weight: 700; font-size: 13px; color: #607d8b; width: 44px; text-align: center; }
.wr-color { position: relative; display: inline-flex; }
.wr-color-ico { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 2px solid #cfd8dc; border-radius: 9px; background: #fff; font-weight: 700; font-size: 18px; cursor: pointer; border-bottom: 5px solid #e53935; }
.wr-color-ico.hl { border-bottom-color: #fff59d; }
.wr-swatches { display: none; position: absolute; top: 100%; margin-top: 4px; left: 0; z-index: 20; background: #fff; border: 2px solid #ffd54f; border-radius: 12px; padding: 6px; grid-template-columns: repeat(6, 26px); gap: 5px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.wr-color.open .wr-swatches, .wr-color:focus-within .wr-swatches { display: grid; }
.wr-color.open .wr-color-ico { background: #ffe082; border-color: #ff9800; }
.wr-swatches i { width: 26px; height: 26px; border-radius: 6px; border: 2px solid #fff; box-shadow: 0 0 0 1px #bbb; cursor: pointer; display: block; }
.wr-swatches i:hover { transform: scale(1.15); }
.wr-custom { position: relative; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; }
.wr-custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.wr-emojimenu { position: absolute; top: 38px; left: 0; z-index: 20; background: #fff; border: 2px solid #ffd54f; border-radius: 12px; padding: 6px; display: grid; grid-template-columns: repeat(8, 38px); gap: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.wr-emojimenu button { font-size: 24px; width: 38px; height: 38px; border: 2px solid #eee; border-radius: 8px; background: #fff; cursor: pointer; }
.wr-emojimenu button:hover { border-color: #ff9800; transform: scale(1.1); }
.wr-find { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: #fff8e1; border: 2px solid #ffd54f; border-radius: 12px; padding: 6px 10px; }
.wr-find input { font-family: inherit; font-size: 15px; height: 32px; border: 2px solid #cfd8dc; border-radius: 8px; padding: 0 8px; width: 200px; user-select: text; -webkit-user-select: text; }
.wr-find #wr-find-msg { font-weight: 700; color: #c62828; font-size: 14px; margin-left: 6px; }
.wr-pagebox { flex: 1; min-height: 0; overflow: auto; background: rgba(96,125,139,.25); border-radius: 14px; padding: 10px; display: flex; justify-content: center; align-items: flex-start; }
.wr-page { width: 100%; min-height: 100%; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); padding: 40px 50px; box-sizing: border-box; }   /* πλήρες πλάτος (προεπιλογή) */
.wr-page.a4 { width: 794px; max-width: 100%; padding: 60px 70px; }
.wr-status #wr-saved.note { color: #2e7d32; background: #e8f5e9; border-radius: 10px; padding: 2px 10px; }
.wr-editor { outline: none; font-family: 'Fredoka', Arial, sans-serif; font-size: 20px; line-height: 1.5; color: #212121; min-height: 400px; user-select: text; -webkit-user-select: text; cursor: text; }
/* Εκθέτης/δείκτης: το styleWithCSS βάζει μόνο vertical-align — μικραίνουμε και τα γράμματα (ίδιο με το .tf-editor) */
.wr-editor sup, .wr-editor sub, .wr-editor [style*="vertical-align: super"], .wr-editor [style*="vertical-align: sub"] { font-size: .7em; line-height: 0; }
.wr-editor img { max-width: 100%; height: auto; }
.wr-editor ul, .wr-editor ol { padding-left: 30px; }
.wr-editor hr { border: 0; border-top: 2px solid #b0bec5; margin: 12px 0; }
.wr-editor table { width: 100%; }
.wr-editor::selection, .wr-editor *::selection { background: #ffe082; }
.wr-status { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; color: #607d8b; padding: 0 8px; }
@media (max-width: 1100px) { .wr-title { width: 150px; } .wr-btn { font-size: 13px; padding: 0 6px; } }
@media print { #topbar, #coach, .wr-bar, .wr-status, .wr-find { display: none !important; } }
