@import url('/shared/ui-fonts.css?v=1');
.material-library,.material-editor{--ink:#173f73;--paper:#fbf6ea;--pink:#fae3ec;--green:#e7f0e4;--muted:#657a91;box-sizing:border-box;color:var(--ink);font:15px/1.65 'Yuanti SC','STYuanti','Avenir Next','PingFang SC',sans-serif;letter-spacing:0}
.material-library *,.material-editor *{box-sizing:border-box;letter-spacing:0}
.material-library [hidden],.material-editor [hidden]{display:none!important}
.material-library button,.material-editor button,.material-library select,.material-library input,.material-editor input,.material-entry{font:inherit;color:inherit;min-height:44px;max-width:100%;border:1.5px solid #173f7338;border-radius:6px;background:#fffdf6;padding:8px 14px;cursor:pointer}
.material-library button:disabled,.material-editor button:disabled{opacity:.5;cursor:default}
.material-library :focus-visible,.material-editor :focus-visible,.material-entry:focus-visible{outline:3px solid #48789f;outline-offset:3px}
.material-library h1,.material-editor h2{font:400 36px/1.4 ZaozuoHand,'PingFang SC',sans-serif;margin:0;overflow-wrap:anywhere}
.material-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.material-heading .material-close{flex:none;border:0;font:28px/1 sans-serif;width:44px;height:44px;padding:0;background:none}
.material-meta{font-size:13px;color:var(--muted);margin:5px 0 12px;overflow-wrap:anywhere}
.material-toolbar,.material-batch,.material-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.material-toolbar img{height:26px;width:26px;object-fit:contain;margin-right:8px;vertical-align:middle}
.material-library .material-primary,.material-editor .material-primary{background:#f9e9a9;border:2px solid var(--ink);font-weight:600}
.material-login{color:var(--ink);text-decoration:underline;text-underline-offset:4px;padding:8px 0}
.material-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:20px 0 12px}
.material-tabs button[aria-pressed=true]{background:var(--green);border-color:#4d725d;box-shadow:0 2px 0 #4d725d}
.material-search{width:100%;max-width:340px!important;background:#fff!important}
.material-status{font-size:14px;min-height:24px;margin:12px 0;color:#8c3f60;overflow-wrap:anywhere}
.material-batch{margin-bottom:16px}
.material-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px;align-items:start}
.material-card{min-width:0;padding:12px;border:1.5px solid #173f7335;border-radius:8px;background:#fffdf8}
.material-picture{aspect-ratio:1/1;display:grid;place-items:center;background:#fff;overflow:hidden;border:1px solid #173f7320;border-radius:4px;min-width:0}
.material-picture img{width:100%;height:100%;object-fit:contain}
.material-picture>span{padding:16px;font-size:13px;text-align:center;overflow-wrap:anywhere}
.material-card h2{font-size:16px;line-height:1.5;margin:12px 0 4px;overflow-wrap:anywhere}
.material-card .material-actions{border-top:1px dashed #173f7338;padding-top:12px;gap:6px}
.material-actions button,.material-actions select{padding:7px 10px;font-size:13px}
.material-actions select{width:100%}
.material-empty{grid-column:1/-1;text-align:center;padding:40px 8px;color:var(--muted)}
.material-empty img{width:100px;height:100px;object-fit:contain}
.material-dialog,.material-editor{position:fixed;background:#fbf6ea;border:2px solid #173f73;border-radius:8px;max-height:calc(100dvh - 24px);width:min(1000px,calc(100% - 24px));padding:24px;overflow:auto;overscroll-behavior:contain;box-shadow:5px 6px 0 #173f7326}
.material-dialog::backdrop,.material-editor::backdrop{background:#182a3e85;backdrop-filter:blur(3px)}
.material-editor{width:min(740px,calc(100% - 24px))}
.material-editor>input{width:100%;margin:0 0 16px}
.material-compare{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.material-compare figure{margin:0;min-width:0}
.material-compare figcaption{font-size:13px;margin:0 0 6px}
.material-compare figure>img{width:100%;aspect-ratio:1/1;object-fit:contain;background:#fff;border:1px solid #173f7320;border-radius:4px}
.material-adjust{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.material-adjust label{display:block;min-width:0}
.material-adjust label>span{display:flex;justify-content:space-between;gap:8px}
.material-adjust output{font-size:13px;color:var(--muted)}
.material-adjust input{display:block;width:100%;padding:0;border:0;accent-color:#173f73;background:none}
.material-editor>button{margin-right:8px}
.material-entry{display:inline-flex;align-items:center;justify-content:center;margin:8px 0;background:#e7f0e4;border-color:#4d725d;color:#173f73}
.materials-page{background:#fbf6ea;color:#173f73;margin:0;font:15px/1.7 'Yuanti SC','STYuanti','PingFang SC',sans-serif}
.materials-page>header{max-width:1160px;margin:auto;padding:18px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px dashed #173f7338}
.materials-page>header a{color:inherit;text-decoration:none;display:inline-flex;align-items:center;gap:10px;min-height:44px}
.materials-page>header img{width:48px;height:48px;object-fit:contain}
.materials-page>main{max-width:1100px;padding:32px 24px 80px;margin:auto}
@media(max-width:540px){.material-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.material-card{padding:8px}.material-card h2{font-size:14px}.material-actions button{padding:6px 8px}.material-dialog,.material-editor{padding:16px}.material-library h1,.material-editor h2{font-size:28px}.material-tabs button{padding:8px 10px;font-size:13px}.material-adjust{grid-template-columns:1fr;gap:8px}.material-compare{gap:10px}.materials-page>main{padding:24px 12px 60px}.material-meta{font-size:12px}.material-card .material-actions{gap:4px}.material-actions select{font-size:12px}.material-search{max-width:100%!important}}
@media(max-width:350px){.material-grid{grid-template-columns:1fr}}
/* The account material page has one list; picker dialogs retain their tool actions. */
.material-library-compact .material-toolbar .zb-ui-symbol{margin-right:8px}
.material-library-compact .material-card h2{font-family:inherit;font-size:16px;margin:12px 0}
.material-library-compact .material-actions{border:0;padding:0}
.material-library-compact .material-actions button{width:100%}
.material-selection-bar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:0 0 20px}
.material-choice{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer}
.material-choice input{width:20px;height:20px;min-height:20px;accent-color:#173f73}
.material-editor-simple>label{display:grid;gap:6px;margin-bottom:16px}
.material-editor-simple .material-adjust{grid-template-columns:1fr;margin-top:20px}

/* The same private library inside editors; management stays on its own page. */
.material-library.material-library-embedded{padding:0;background:transparent;min-width:0;width:100%;font-family:inherit}.material-library-embedded .material-manage-link{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;min-height:44px;border:1px solid #173f7333;border-radius:12px;color:inherit;text-decoration:none;background:var(--click-tint,#fbf4e9)}.material-library-embedded>.material-manage-link+button{float:right;padding:10px;border:0;background:transparent;color:inherit}.material-library-embedded .material-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}.material-library-embedded .material-card{padding:0;min-width:0;border:0;box-shadow:none;background:transparent;overflow:hidden}.material-library-embedded .material-use-tile{display:flex;flex-direction:column;align-items:center;width:100%;min-height:120px;padding:10px 6px;border:1px solid transparent;border-radius:15px;background:var(--click-tint,#eaf3f7);color:inherit}.material-library-embedded .material-use-tile:hover{border-color:currentColor}.material-library-embedded .material-picture{width:100%;height:78px;min-height:0;background:transparent}.material-library-embedded .material-picture img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}.material-library-embedded h2{font:inherit;font-size:13px;line-height:1.4;margin:8px 0 0;word-break:break-all}.material-library-embedded .material-actions:empty,.material-library-embedded .material-status:empty{display:none}.material-library-embedded .material-empty{grid-column:1/-1}.material-library-embedded .material-status{font-size:12px}.material-library-embedded .material-login{display:block;margin:10px 0}
.material-item-status{font-size:12px;line-height:1.5;margin:7px 0;color:var(--muted,#526983);overflow-wrap:anywhere}.material-item-status:empty{display:none}.material-use-tile[aria-busy=true]{opacity:.75;cursor:progress}
