body.house-mode #houseLibraryOpen{display:inline-flex;align-items:center;justify-content:center;flex:none;gap:5px;width:auto;min-width:0;min-height:32px;padding:5px 9px;border:1px solid #dbe7df;border-radius:5px;background:#f0f6f2;color:#326d54;font-family:inherit;font-size:13px;font-weight:600;line-height:1.35;white-space:nowrap;box-shadow:none}
body.house-mode #houseLibraryOpen>span,body.house-mode #houseLibraryOpen .ic{color:inherit}
body.house-mode #houseLibraryOpen .ic{width:16px;height:16px;flex:none;stroke:currentColor;fill:none}
body.house-mode #houseLibraryOpen:hover:not(:disabled){background:#e5f1e9;border-color:#bdd7c7;color:#236244;box-shadow:none}
body.house-mode #houseLibraryOpen:focus-visible{outline:2px solid #67a887;outline-offset:2px}
body.house-mode #houseLibraryOpen:disabled{background:#f4f7f5;border-color:#e0e8e2;color:#8b9b91;opacity:.65;cursor:wait}
body.house-library-open{overflow:hidden}
.house-library-backdrop{position:fixed;inset:0;z-index:22000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(24,43,37,.42);backdrop-filter:blur(3px);box-sizing:border-box;color:#233e34;font-family:inherit;font-size:14px;line-height:1.5;text-align:left}
.house-library-backdrop[hidden],.house-library-dialog [hidden]{display:none!important}
.house-library-dialog{position:relative;width:min(780px,100%);max-height:min(850px,calc(100dvh - 48px));display:flex;flex-direction:column;overflow:hidden;background:#fbfdfb;border:1px solid rgba(255,255,255,.85);border-radius:18px;box-shadow:0 24px 90px rgba(20,42,32,.25);outline:none}
.house-library-dialog *{box-sizing:border-box}
.house-library-dialog .hl-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:23px 25px 19px;border-bottom:1px solid #e3ebe6;background:#fff}
.house-library-dialog .hl-title{margin:0;font-size:21px;line-height:1.4;letter-spacing:.01em;color:#203c31}
.house-library-dialog .hl-subtitle{margin:5px 0 0;color:#7b8881;font-size:13px}
.house-library-dialog button{font-family:inherit;cursor:pointer;line-height:1.35;letter-spacing:normal;box-shadow:none;white-space:nowrap}
.house-library-dialog button:disabled{opacity:.5;cursor:wait;transform:none}
.house-library-dialog .hl-close{display:flex;flex:none;align-items:center;justify-content:center;width:32px;height:32px;min-height:0;padding:0;border:0;border-radius:8px;background:#f1f5f2;color:#63796d;font-size:25px;font-weight:400}
.house-library-dialog .hl-close:hover:not(:disabled){background:#e5ede7;color:#234b38}
.house-library-dialog .hl-main{display:flex;flex-direction:column;min-height:0;padding:19px 25px 0;overflow:hidden}
.house-library-dialog .hl-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}
.house-library-dialog .hl-current{display:flex;flex-direction:column;min-width:0;gap:2px}
.house-library-dialog .hl-current-label{font-size:11px;color:#7a8b81}
.house-library-dialog .hl-current-name{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#2a513d;font-weight:600}
.house-library-dialog .hl-toolbar-actions{display:flex;flex:none;gap:8px}
.house-library-dialog .hl-tabs{display:flex;align-self:flex-start;flex:none;gap:3px;padding:3px;margin:0 0 14px;border:1px solid #e0e8e2;border-radius:8px;background:#eff4f0}
.house-library-dialog .hl-tab{min-height:31px;padding:6px 13px;border:1px solid transparent;border-radius:5px;background:transparent;color:#7c8b80;font-size:12px;font-weight:500}
.house-library-dialog .hl-tab[aria-selected=true]{border-color:#d9e5dc;background:#fff;color:#286743;font-weight:600;box-shadow:0 1px 3px #264d3610}
.house-library-dialog .hl-tab:hover:not(:disabled){color:#286743;background:#f9fcf9}
.house-library-dialog .hl-button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 13px;border:1px solid transparent;border-radius:7px;font-size:13px;font-weight:600;text-decoration:none;background:#fff;color:#305c48}
.house-library-dialog .hl-button-primary{background:#167d60;border-color:#167d60;color:#fff}
.house-library-dialog .hl-button-primary:hover:not(:disabled){background:#116b51}
.house-library-dialog .hl-button-secondary{background:#fff;border-color:#cdded2;color:#375e47}
.house-library-dialog .hl-button-secondary:hover:not(:disabled){background:#eef6ef}
.house-library-dialog .hl-button-danger{background:#a85845;border-color:#a85845;color:#fff}
.house-library-dialog .hl-button-danger:hover:not(:disabled){background:#934a38;border-color:#934a38}
.house-library-dialog .hl-search-row{display:flex;align-items:center;gap:16px;margin-bottom:14px}
.house-library-dialog .hl-search{width:100%;min-width:0;max-width:320px;height:36px;min-height:0;padding:7px 12px;background:#fff;border:1px solid #dce6df;border-radius:7px;font:inherit;font-size:13px;color:#2e4c3b;box-shadow:none}
.house-library-dialog .hl-search::placeholder{color:#9aa59d}
.house-library-dialog .hl-total{margin-left:auto;white-space:nowrap;font-size:12px;color:#839087}
.house-library-dialog .hl-status{flex:none;margin:0 0 12px;padding:8px 11px;background:#eff6f1;border-radius:7px;color:#3d7053;font-size:12px;overflow-wrap:anywhere}
.house-library-dialog .hl-status[data-kind=error]{background:#fff1e9;color:#a55132}
.house-library-dialog .hl-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:15px;overflow-y:auto;min-height:120px;padding:2px 2px 18px;margin:0 -2px;scrollbar-width:thin;scrollbar-color:#c6d8cd transparent}
.house-library-dialog .hl-card{overflow:hidden;border:1px solid #dce7df;border-radius:11px;background:#fff;transition:border-color .15s,box-shadow .15s}
.house-library-dialog .hl-card:hover{border-color:#acc9b7;box-shadow:0 4px 15px rgba(32,68,45,.05)}
.house-library-dialog .hl-card[data-active=true]{border-color:#83bda1;box-shadow:0 0 0 1px rgba(103,164,131,.14)}
.house-library-dialog .hl-preview{position:relative;height:137px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#edf4ef,#f8faf7);border-bottom:1px solid #edf1ed}
.house-library-dialog .hl-preview>svg{width:100%;height:126px;opacity:.9}
.house-library-dialog .hl-preview-image{width:100%;height:100%;object-fit:contain;background:#e9f1ee}
.house-library-dialog .hl-active-badge{position:absolute;left:11px;top:10px;padding:3px 8px;border-radius:5px;background:#fafffb;box-shadow:0 1px 5px #1637270d;color:#37815a;font-size:11px;border:1px solid #cce2d1;font-weight:600}
.house-library-dialog .hl-card-content{padding:13px 14px 12px}
.house-library-dialog .hl-card-name{margin:0 0 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:600;line-height:1.5;color:#2a4737}
.house-library-dialog .hl-card-counts{margin:0;font-size:12px;line-height:1.5;color:#79877d}
.house-library-dialog .hl-card-date{margin:4px 0 12px;font-size:11px;line-height:1.5;color:#98a29a}
.house-library-dialog .hl-card-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding-top:10px;border-top:1px solid #eff3ef}
.house-library-dialog .hl-card-open{grid-column:1/-1;width:100%;margin:0;min-height:32px;padding:6px 9px;background:#edf6f0;color:#287448;border-color:#dceee0;font-size:12px}
.house-library-dialog .hl-card-open:hover:not(:disabled){background:#dfefe4}
.house-library-dialog .hl-card-action{min-width:0;min-height:32px;padding:6px 5px;border:1px solid #d9e3dc;border-radius:6px;background:#fafcfb;color:#536e5e;font-size:12px;font-weight:500;text-align:center}
.house-library-dialog .hl-card-action:hover:not(:disabled){background:#eef6f0;border-color:#bad4c3;color:#286743}
.house-library-dialog .hl-card-delete{background:#fff8f4;border-color:#ead9cf;color:#9a6754}
.house-library-dialog .hl-card-delete:hover:not(:disabled){background:#fcece4;border-color:#d6ad9b;color:#96513b}
.house-library-dialog .hl-empty{grid-column:1/-1;display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:240px;color:#587460;text-align:center}
.house-library-dialog .hl-empty>svg{width:210px;height:99px;margin-bottom:14px;opacity:.7}
.house-library-dialog .hl-empty>strong{font-size:14px;font-weight:600}
.house-library-dialog .hl-empty>p{margin:7px 0 0;font-size:12px;color:#97a198}
.house-library-dialog .hl-footer{display:flex;align-items:flex-start;gap:10px;padding:13px 0 15px;border-top:1px solid #e6ede7;color:#92a095;font-size:10px;flex:none}
.house-library-dialog .hl-storage-label{white-space:nowrap}
.house-library-dialog .hl-storage-path{min-width:0;font-family:inherit;color:#89968c;font-size:10px;word-break:break-all}
.house-library-dialog .hl-name-layer{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(243,248,244,.8);backdrop-filter:blur(3px)}
.house-library-dialog .hl-name-form{width:100%;max-width:365px;padding:24px;background:#fff;border:1px solid #d7e4db;border-radius:13px;box-shadow:0 16px 46px #14382120}
.house-library-dialog .hl-name-title{font-size:18px;margin:0;color:#264835;font-weight:600}
.house-library-dialog .hl-name-hint{font-size:12px;margin:6px 0 18px;color:#738278;line-height:1.75;overflow-wrap:anywhere}
.house-library-dialog .hl-name-input{width:100%;height:42px;min-height:0;border:1px solid #bfd7c9;border-radius:7px;background:#fbfdfb;color:#2e4c3b;padding:9px 11px;font:inherit;font-size:14px;box-shadow:none}
.house-library-dialog .hl-name-error{margin:7px 0 0;font-size:12px;color:#b04f39}
.house-library-dialog .hl-name-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}
.house-library-dialog :is(button,input):focus-visible{outline:2px solid #69ac8b;outline-offset:2px}
@media(max-width:590px){.house-library-backdrop{padding:12px}.house-library-dialog{max-height:calc(100dvh - 24px);border-radius:14px}.house-library-dialog .hl-header{padding:18px}.house-library-dialog .hl-main{padding:16px 18px 0}.house-library-dialog .hl-list{gap:12px;grid-template-columns:1fr}.house-library-dialog .hl-toolbar{flex-wrap:wrap}.house-library-dialog .hl-current{max-width:100%}.house-library-dialog .hl-toolbar-actions{margin-left:auto}.house-library-dialog .hl-card-content{padding:11px}.house-library-dialog .hl-card-actions{gap:8px;flex-wrap:wrap}.house-library-dialog .hl-card-open{flex-basis:100%;margin-right:0}.house-library-dialog .hl-preview{height:115px}.house-library-dialog .hl-preview>svg{height:105px}.house-library-dialog .hl-card-date{font-size:10px}.house-library-dialog .hl-subtitle{font-size:12px}}
@media(max-width:400px){.house-library-dialog .hl-list{grid-template-columns:1fr}.house-library-dialog .hl-card-open{flex-basis:auto;margin-right:auto}.house-library-dialog .hl-preview{height:115px}.house-library-dialog .hl-header{padding:16px}.house-library-dialog .hl-main{padding:14px 16px 0}.house-library-dialog .hl-button{padding:8px 10px}.house-library-dialog .hl-search-row{gap:8px}}
