.journal-table{width:100%;margin:18px 0;border-collapse:collapse;border:1px solid #b6c8d5;border-radius:0;overflow:visible;color:#294354;font-size:14px;line-height:1.6}
.journal-table th,.journal-table td{box-sizing:border-box;height:42px;min-width:110px;padding:10px 12px!important;border:1px solid #b6c8d5!important;vertical-align:top;overflow-wrap:anywhere}
.journal-table th{background:#edf4f8!important;font-weight:600;text-align:left}
.journal-table tbody tr:nth-child(even){background:#fafcfd}
.journal-table .jt-active-cell{outline:2px solid #ef8b26;outline-offset:-2px;background:#fff8ed}
#ai-chat-input,[data-template-visual]{overflow-x:auto}
.jt-tools{position:fixed;z-index:10020;display:flex;flex-wrap:wrap;gap:3px;width:max-content;max-width:calc(100vw - 16px);padding:6px;border:1px solid #d7e2e9;border-radius:9px;background:#fff;box-shadow:0 4px 18px #203e5526}
.jt-tools button,.jt-dialog button{cursor:pointer;font:inherit;border:1px solid #d9e3e9;border-radius:6px;background:#fff;color:#38586c;padding:7px 10px}
.jt-tools button{font-size:12px;padding:5px 8px}
.jt-tools button:hover,.jt-dialog button:hover{background:#fff3e5;border-color:#f3ad60;color:#bc5c00}
.jt-dialog{box-sizing:border-box;width:440px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);overflow:auto;padding:22px;border:1px solid #dbe4eb;border-radius:16px;color:#294354;box-shadow:0 18px 70px #162d4938}
.jt-dialog::backdrop{background:#1c30476b}
.jt-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.jt-dialog h2{margin:0;font-size:20px}.jt-dialog p{font-size:13px;color:#708696;line-height:1.6}
.jt-grid{display:grid;grid-template-columns:repeat(8,28px);gap:5px}.jt-grid button{width:28px;height:28px;padding:0;border-radius:3px}.jt-grid .selected{background:#ffe7c9;border-color:#f59b38}
.jt-dimensions{display:flex;gap:16px}.jt-dimensions label{display:grid;gap:7px;font-size:13px;flex:1}.jt-dimensions input{box-sizing:border-box;width:100%;padding:9px;border:1px solid #ccdbe5;border-radius:6px}
.jt-presets{display:flex;flex-wrap:wrap;gap:7px;margin:18px 0;font-size:12px}.jt-dialog footer{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}
.jt-dialog [data-confirm],.jt-dialog [data-apply]{background:#ff8808;color:white;border-color:#ff8808}
.jt-wide{width:1120px;height:min(820px,calc(100dvh - 32px));display:flex;flex-direction:column}.jt-wide .jt-expanded-editor{flex:1;min-height:180px;overflow:auto;border:1px solid #d8e3e9;border-radius:8px;padding:12px;outline:none}.jt-wide .jt-expanded-editor table{margin:38px 0 12px}
[data-template-visual]{box-sizing:border-box;min-height:320px;max-height:560px;padding:14px;border:1px solid #ccdbe5;border-radius:8px;background:white;font-size:14px;line-height:1.7;outline:none}
[data-template-visual]:focus{border-color:#ff950d}
@media(max-width:600px){.jt-dialog{padding:16px}.jt-tools{gap:2px}.jt-tools button{font-size:11px;padding:5px}.journal-table th,.journal-table td{min-width:96px}}

.log-template-form textarea[hidden]{display:none!important}
