#journal-dialog:has(.sb-library){width:min(1024px,calc(100% - 32px));height:min(744px,calc(100dvh - 64px));max-height:none;padding:32px 0 0;border:0;border-radius:12px;overflow:hidden;background:#fff;color:#20282d}
#journal-dialog:has(.sb-library)>h2{margin:0 32px 8px;font-size:24px;font-weight:500}
#journal-dialog:has(.sb-library) #dialog-content{height:calc(100% - 37px)}
.sb-library{height:100%;display:flex;flex-direction:column;font-size:14px}.sb-library-subhead{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 32px 16px}.sb-library-subhead p{margin:0!important;color:#666!important}.sb-library-subhead label{white-space:nowrap;font-size:13px;display:flex;align-items:center;gap:8px}.sb-library input[type=checkbox]{accent-color:#086aff}
.sb-library-layout{display:grid;grid-template-columns:252px 1fr;flex:1;min-height:0;border-top:1px solid #eaeaea}.sb-library-layout>aside{background:#f5f5f5;border-right:1px solid #eaeaea;padding:18px 16px 16px;display:flex;flex-direction:column;gap:3px;overflow:auto}.sb-label{text-transform:uppercase;font-size:11px;letter-spacing:.6px;color:#666;margin:0 0 6px}.sb-label:not(:first-child){margin-top:22px}.sb-library-layout>aside>button{text-align:left;background:transparent;border-radius:9px;padding:8px 12px;font-size:13px;color:#111}.sb-library-layout>aside>button.selected{background:#fff;color:#086aff;box-shadow:0 1px 3px #0002}.sb-library-layout>aside>.sb-own{margin-top:auto;min-height:76px;border:2px solid #086aff;display:flex;align-items:center;gap:12px;background:#fff;font-size:14px;flex-shrink:0}.sb-own>span{display:grid;place-items:center;background:#086aff;color:#fff;border-radius:50%;width:32px;height:32px;font-size:25px}
.sb-library-main{min-width:0;display:flex;flex-direction:column;min-height:0}.sb-search{padding:24px;border-bottom:1px solid #eee}.sb-search input{width:100%;height:40px;border:1px solid #ddd;border-radius:8px;padding:0 12px;font-size:14px}.sb-template-grid{overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:24px;align-content:start}.sb-template{padding:18px;border:1px solid #ddd;border-radius:10px;min-width:0;min-height:178px;display:flex;flex-direction:column;outline-offset:3px}.sb-template h3{margin:0 0 13px;font-size:14px;font-weight:500;color:#111}.sb-tags{display:flex;flex-wrap:wrap;gap:6px}.sb-tags span{background:#e2edff;color:#086aff;border:1px solid #aacbff;border-radius:7px;padding:3px 8px;font-size:12px}.sb-template p{font-size:12px!important;line-height:1.4!important;color:#666!important;margin:12px 0 10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.sb-template-bottom{margin-top:auto;position:relative;min-height:33px;display:flex;align-items:center}.sb-template-bottom>small{font-size:12px;color:#777}.sb-template-actions{position:absolute;inset:0;display:flex;gap:8px;background:#fff;visibility:hidden}.sb-template-actions button{font-size:12px;min-height:32px;padding:6px 10px;white-space:nowrap}.sb-template:hover,.sb-template:focus-within{border-color:#086aff}.sb-template:hover .sb-template-actions,.sb-template:focus-within .sb-template-actions{visibility:visible}.sb-preview footer{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}.sb-preview li{padding:6px 0;line-height:1.5}.sb-error{color:#d83c4d!important}.sb-no-results{grid-column:1/-1}
#journal-dialog:has(.sb-editor){position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0;padding:0;overflow:hidden;background:#f5f6f8;color:#28343a}
#journal-dialog:has(.sb-editor)>h2{height:66px;display:flex;align-items:center;padding:0 24px;margin:0;border-bottom:1px solid #ececec;background:#fff;font-size:18px;font-weight:600}
#journal-dialog:has(.sb-editor)>.dialog-close{top:17px;right:24px}#journal-dialog:has(.sb-editor) #dialog-content{height:calc(100% - 66px)}.sb-editor{height:100%;display:flex;flex-direction:column;font-size:14px}.sb-editor-scroll{flex:1;min-height:0;overflow:auto;padding:48px 24px}.sb-general{max-width:700px;margin:auto;padding:24px;background:#fff;border-radius:9px}.sb-general h3{font-size:24px;margin:0 0 28px;font-weight:600}.sb-general>label{display:block;margin:26px 0 7px}.sb-general>label:first-of-type{margin-top:0}.sb-general input:not([type=color]),.sb-general select{min-width:0;height:40px;border:1px solid #ddd;border-radius:8px;background:#fff;padding:8px 11px;color:#28343a;font-size:14px}.sb-general>input{width:100%}.sb-name-row{display:flex;gap:10px}.sb-name-row>input{flex:1}.sb-appearance{position:relative;flex:0 0 142px}.sb-appearance summary{list-style:none;border:1px solid #ddd;border-radius:8px;padding:11px 14px;cursor:pointer;display:flex;justify-content:space-between}.sb-appearance>div{position:absolute;right:0;top:44px;width:180px;padding:16px;background:#fff;border:1px solid #ddd;border-radius:8px;box-shadow:0 8px 20px #0002;z-index:2;display:grid;gap:12px}.sb-appearance label{display:flex;align-items:center;justify-content:space-between;gap:12px}.sb-appearance input[type=color]{width:52px;height:30px;border:0;background:none}.sb-photo-preview:empty{display:none}.sb-photo-preview{display:flex;align-items:center;gap:12px;margin-top:12px}.sb-photo-preview img{max-width:160px;max-height:100px;border-radius:6px}.sb-photo-preview button{background:none;color:#086aff}.sb-rules-heading{display:flex;align-items:center;gap:20px;margin-top:20px}.sb-rules-heading h3{margin:0 auto 0 0}.sb-rules-heading button{font-size:14px;white-space:nowrap}.sb-text{background:transparent;color:#086aff;padding:8px 0}.sb-guide{background:#f1f5fc;padding:12px;border-radius:8px}.sb-group{padding:20px 16px;background:#f8f8f8;border:1px solid #f1f1f1;border-radius:9px;margin-top:18px}.sb-group>header{display:flex;align-items:center;gap:12px;margin-bottom:22px}.sb-group>header>input{flex:1}.sb-group button[aria-label^=Remove]{background:none;color:#999;font-size:24px;padding:2px;line-height:1}.sb-move{display:grid;flex:none}.sb-move button{background:transparent;color:#888;font-size:12px;padding:0 4px;line-height:15px}.sb-move button:disabled{opacity:.3;cursor:default}.sb-rules{padding:12px;background:#fff}.sb-rule{display:flex;align-items:center;gap:10px;margin-bottom:10px}.sb-rule>input{flex:1}.sb-rule>select{width:120px}.sb-session{font-size:12px!important;color:#777!important;margin:24px 0 0}.sb-editor-footer{background:white;border-top:1px solid #eee;padding:16px 24px;display:flex;justify-content:flex-end;gap:12px;flex-shrink:0}.sb-editor-footer button{min-height:40px;font-size:14px}.sb-strategy-symbol{display:grid;place-items:center;width:30px;height:30px;border-radius:7px;font-size:24px}.sb-strategy-photo{width:100%;max-height:160px;object-fit:cover;border-radius:8px;margin-bottom:12px}
@media(hover:none){.sb-template-actions{position:static;visibility:visible;flex-wrap:wrap}.sb-template-bottom>small{display:none}}
@media(max-width:800px){.sb-library-subhead{align-items:flex-start;flex-direction:column;padding:0 20px 16px}.sb-library-layout{grid-template-columns:180px 1fr}.sb-template-grid{grid-template-columns:1fr;padding:16px}.sb-search{padding:16px}.sb-library-layout>aside{padding:16px 10px}.sb-library-layout>aside>.sb-own{padding:8px;gap:7px}.sb-template-actions{visibility:visible}.sb-template-bottom>small{visibility:hidden}}
@media(max-width:540px){#journal-dialog:has(.sb-library){width:calc(100% - 16px);height:calc(100dvh - 24px);padding-top:24px}#journal-dialog:has(.sb-library)>h2{margin-left:20px;font-size:21px}.sb-library-layout{grid-template-columns:1fr}.sb-library-layout>aside{flex-direction:row;flex-wrap:wrap;gap:5px;overflow:visible}.sb-label{display:none}.sb-library-layout>aside>.sb-own{margin:0;min-height:36px;font-size:12px}.sb-own>span{width:22px;height:22px;font-size:20px}.sb-library-layout>aside>button{padding:5px 8px}.sb-library-main{min-height:0}.sb-editor-scroll{padding:20px 12px}.sb-general{padding:18px 12px}.sb-rules-heading{gap:10px;flex-wrap:wrap}.sb-rules-heading h3{width:100%}.sb-name-row{flex-wrap:wrap}.sb-name-row>input{flex-basis:100%}.sb-group{padding:12px 8px}.sb-rules{padding:8px}.sb-rule{flex-wrap:wrap}.sb-rule>input{width:calc(100% - 34px)}.sb-rule>select{margin-left:27px;flex:1}.sb-group>header{gap:6px}.sb-editor-footer{padding:12px}.sb-library-subhead label{white-space:normal}}
