.aal-root{align-items:stretch;justify-content:stretch;color:var(--text,#1f2933);}
.aal-shell{width:100%;height:100%;display:flex;overflow:hidden;background:#fbf8f7;font-family:var(--font,"Noto Sans SC","Segoe UI",-apple-system,BlinkMacSystemFont,sans-serif);}
.aal-media-bar{flex:0 0 auto;display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:0 0 14px;margin-bottom:14px;background:#fff;border-bottom:1px solid var(--line,rgba(139,157,175,.18));}
.aal-media-segment{display:grid;grid-template-columns:repeat(auto-fit,minmax(66px,1fr));gap:4px;padding:4px;border-radius:12px;background:var(--bg,#f3f4f6);border:1px solid rgba(139,157,175,.16);}
.aal-media-tab{position:relative;min-width:0;border-radius:9px;background:transparent;color:var(--text-3,#6b7280);}
.aal-media-tab>button,.aal-add-media{appearance:none;border:0;background:transparent;color:inherit;font-size:12px;cursor:pointer;}
.aal-media-tab>button{width:100%;min-width:0;display:flex;align-items:center;justify-content:center;gap:5px;padding:8px 6px;border-radius:9px;line-height:1.2;}
.aal-media-tab>button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.aal-media-tab svg{width:16px;height:16px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.aal-icon-actions{display:flex;align-items:center;gap:2px;flex:0 0 auto;}
.aal-icon-actions button{width:25px;height:25px;display:grid;place-items:center;border:0;border-radius:6px;background:transparent;color:var(--text-mute,#9aa4af);cursor:pointer;padding:0;}
.aal-icon-actions button:hover{background:var(--brand-red-soft,#f5edeb);color:var(--brand-red,#b87d75);}
.aal-icon-actions svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.aal-media-tab.is-active>button{background:#fff;color:var(--brand-red,#b87d75);font-weight:700;box-shadow:0 2px 8px rgba(17,24,39,.1);}
.aal-add-media{align-self:flex-start;border:1px dashed var(--line-strong,#e5e7eb);border-radius:8px;color:var(--brand-red,#b87d75);padding:6px 9px;}
.aal-add-media:hover{border-color:rgba(184,125,117,.38);background:var(--brand-red-soft,#f5edeb);}
.aal-sidebar{width:300px;flex:0 0 300px;background:#fff;border-right:1px solid var(--line,rgba(139,157,175,.18));padding:16px 12px;overflow:auto;}
.aal-side-title{padding:0 8px 10px;color:var(--text,#1f2933);font-size:14px;font-weight:700;}
.aal-type-list{display:flex;flex-direction:column;gap:5px;}
.aal-type-row{display:flex;align-items:center;gap:4px;border-radius:8px;color:var(--text,#1f2933);}
.aal-type-row>button{flex:1;min-width:0;display:flex;align-items:center;gap:8px;border:0;border-radius:8px;background:transparent;padding:10px 8px;color:inherit;font-size:13px;text-align:left;cursor:pointer;}
.aal-type-row>button span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.aal-type-row em,.aal-acc-head em{font-style:normal;color:var(--text-mute,#9aa4af);font-size:11px;font-variant-numeric:tabular-nums;}
.aal-type-row:hover{background:var(--bg,#f3f4f6);}
.aal-type-row.is-active{background:var(--brand-red-soft,#f5edeb);color:var(--brand-red,#b87d75);font-weight:600;}
.aal-add-row{margin-top:7px;border:1px dashed var(--line-strong,#e5e7eb);border-radius:8px;background:#fff;color:var(--brand-red,#b87d75);padding:10px 12px;text-align:left;cursor:pointer;}
.aal-side-empty{padding:20px 8px;color:var(--text-mute,#9aa4af);font-size:12px;line-height:1.6;}
.aal-main{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden;}
.aal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 26px;background:rgba(255,255,255,.86);border-bottom:1px solid var(--line,rgba(139,157,175,.14));}
.aal-head h2{margin:0;color:var(--text,#1f2933);font-size:21px;line-height:1.25;letter-spacing:0;}
.aal-head p{margin:5px 0 0;color:var(--text-3,#6b7280);font-size:12px;}
.aal-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap;}
.aal-search,.aal-modal-input,.aal-modal-select,.aal-modal-textarea{appearance:none;border:1px solid var(--line-strong,#e5e7eb);border-radius:7px;background:#fff;color:var(--text,#1f2933);font-size:13px;outline:none;}
.aal-search{width:min(28vw,320px);min-width:190px;padding:8px 11px;}
.aal-search:focus,.aal-modal-input:focus,.aal-modal-select:focus,.aal-modal-textarea:focus{border-color:var(--brand-red,#b87d75);box-shadow:0 0 0 3px var(--brand-red-ring,rgba(184,125,117,.18));}
.aal-primary,.aal-ghost{appearance:none;border-radius:7px;padding:8px 13px;font-size:12px;font-weight:600;cursor:pointer;}
.aal-primary{border:0;background:var(--brand-red,#b87d75);color:#fff;}
.aal-primary:hover{background:var(--brand-red-hover,#a06a63);}
.aal-primary:disabled,.aal-ghost:disabled{opacity:.45;cursor:not-allowed;}
.aal-ghost{border:1px solid var(--line-strong,#e5e7eb);background:#fff;color:var(--brand-red,#b87d75);}
.aal-notice{margin:14px 26px 0;padding:9px 12px;border:1px solid rgba(184,125,117,.24);border-radius:8px;background:var(--brand-red-soft,#f5edeb);color:var(--brand-red-hover,#a06a63);font-size:12px;}
.aal-accordions{flex:1;overflow:auto;padding:18px 26px 40px;}
.aal-cat-shortcuts{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:16px;}
.aal-cat-shortcuts button{appearance:none;border:1px solid var(--line-strong,#e5e7eb);border-radius:999px;background:#fff;color:var(--text-3,#6b7280);padding:7px 12px;font-size:12px;line-height:1.2;cursor:pointer;}
.aal-cat-shortcuts button:hover{border-color:rgba(184,125,117,.34);color:var(--brand-red,#b87d75);}
.aal-cat-shortcuts button.is-active{background:var(--brand-red-soft,#f5edeb);border-color:rgba(184,125,117,.28);color:var(--brand-red,#b87d75);font-weight:700;}
.aal-cat-shortcuts .aal-add-shortcut{border-style:dashed;color:var(--brand-red,#b87d75);}
.aal-cat-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-auto-rows:max-content;gap:14px;align-content:start;}
.aal-acc{min-width:0;border:1px solid var(--line,rgba(139,157,175,.16));border-radius:9px;background:#fff;box-shadow:0 1px 2px rgba(17,24,39,.035);}
.aal-acc:hover{border-color:rgba(184,125,117,.28);box-shadow:0 8px 22px rgba(17,24,39,.07);}
.aal-acc.is-open{grid-column:1/-1;}
.aal-acc-head{position:relative;display:flex;align-items:center;gap:10px;min-height:82px;padding:14px;cursor:pointer;}
.aal-acc-head>div{flex:1;min-width:0;}
.aal-acc-head strong{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;color:var(--text,#1f2933);}
.aal-acc-head em{display:block;margin-top:7px;}
.aal-arrow{width:26px;height:26px;flex:0 0 auto;border:1px solid var(--line-strong,#e5e7eb);border-radius:50%;background:#fff;color:var(--text-3,#6b7280);font-size:15px;line-height:1;cursor:pointer;}
.aal-acc-panel{border-top:1px solid var(--line,rgba(139,157,175,.12));padding:14px;}
.aal-panel-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;color:var(--text-3,#6b7280);font-size:13px;}
.aal-panel-bar .aal-ghost{flex:0 0 auto;}
.aal-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));grid-auto-rows:max-content;gap:14px;align-content:start;padding:0 14px 16px;}
.aal-card{position:relative;overflow:hidden;border:1px solid var(--line,rgba(139,157,175,.16));border-radius:9px;background:#fff;cursor:pointer;box-shadow:0 1px 2px rgba(17,24,39,.04);}
.aal-card:hover{border-color:rgba(184,125,117,.32);box-shadow:0 8px 22px rgba(17,24,39,.09);transform:translateY(-1px);}
.aal-thumb{aspect-ratio:1;background:#f5f2f1;border-bottom:1px solid var(--line,rgba(139,157,175,.14));}
.aal-thumb img{display:block;width:100%;height:100%;object-fit:cover;}
.aal-media-placeholder{aspect-ratio:1;display:flex;align-items:center;justify-content:center;background:#f6f1f0;color:var(--brand-red,#b87d75);font-size:14px;font-weight:700;border-bottom:1px solid rgba(184,125,117,.16);}
.aal-text-preview{height:138px;padding:13px;background:#fff9f8;border-bottom:1px solid rgba(184,125,117,.16);}
.aal-text-preview b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:var(--text,#1f2933);}
.aal-text-preview p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:8px 0 0;color:var(--text-3,#6b7280);font-size:12px;line-height:1.55;}
.aal-card-info{padding:9px 10px 11px;}
.aal-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text,#1f2933);font-size:13px;font-weight:600;}
.aal-tag{display:inline-flex;max-width:100%;margin-top:7px;padding:2px 7px;border-radius:10px;background:var(--bg,#f3f4f6);color:var(--text-3,#6b7280);font-size:10px;line-height:1.5;}
.aal-card-actions{position:absolute;top:8px;right:8px;display:none;gap:5px;}
.aal-card:hover .aal-card-actions{display:flex;}
.aal-card-actions button{border:0;border-radius:12px;background:rgba(31,41,51,.72);color:#fff;font-size:11px;padding:4px 7px;cursor:pointer;}
.aal-card-actions button:hover{background:var(--brand-red,#b87d75);}
.aal-grid-empty,.aal-empty{color:var(--text-mute,#9aa4af);font-size:13px;text-align:center;}
.aal-grid-empty{grid-column:1/-1;padding:24px;}
.aal-empty{padding:44px 18px;}
.aal-empty b{display:block;color:var(--text,#1f2933);font-size:17px;margin-bottom:8px;}
.aal-empty span{display:block;color:var(--text-mute,#9aa4af);font-size:13px;}
.aal-modal{width:min(92vw,420px);}
.aal-upload-modal{width:min(92vw,560px);}
.aal-prompt-modal{width:min(92vw,620px);}
.aal-modal-input,.aal-modal-select{width:100%;padding:10px 11px;margin-top:12px;}
.aal-modal-copy{margin:12px 0 0;color:var(--text-3,#6b7280);font-size:13px;line-height:1.6;}
.aal-modal-target{margin-top:12px;padding:10px 11px;border:1px solid var(--line,rgba(139,157,175,.16));border-radius:7px;background:var(--bg,#f3f4f6);color:var(--text-3,#6b7280);font-size:13px;}
.aal-name-list{max-height:300px;overflow:auto;margin-top:12px;border:1px solid var(--line,rgba(139,157,175,.16));border-radius:8px;}
.aal-name-list label{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:center;padding:10px;border-bottom:1px solid var(--line,rgba(139,157,175,.12));}
.aal-name-list label:last-child{border-bottom:0;}
.aal-name-list span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-3,#6b7280);font-size:12px;}
.aal-name-list input{min-width:0;border:1px solid var(--line-strong,#e5e7eb);border-radius:6px;padding:8px;font-size:13px;}
.aal-modal-textarea{width:100%;min-height:220px;resize:vertical;padding:11px;margin-top:12px;line-height:1.55;}
.aal-lightbox{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;background:rgba(17,24,39,.82);}
.aal-lightbox-media img,.aal-lightbox-media video{display:block;max-width:90vw;max-height:90vh;object-fit:contain;box-shadow:0 18px 60px rgba(0,0,0,.34);}
.aal-lightbox-media audio{width:min(82vw,620px);}
.aal-lightbox-caption{position:fixed;left:50%;bottom:24px;max-width:min(86vw,680px);transform:translateX(-50%);color:#fff;font-size:14px;font-weight:500;text-align:center;}
.aal-lightbox-close{position:fixed;top:18px;right:22px;width:36px;height:36px;border:1px solid rgba(255,255,255,.24);border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:24px;line-height:1;cursor:pointer;}
@media (max-width:980px){.aal-cat-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:640px){.aal-cat-grid{grid-template-columns:1fr;}}
@media (max-width:768px){.aal-shell{flex-direction:column}.aal-media-bar{padding-bottom:10px;margin-bottom:10px}.aal-sidebar{width:100%;flex:0 0 auto;max-height:240px;border-right:0;border-bottom:1px solid var(--line,rgba(139,157,175,.18))}.aal-type-list{display:flex;flex-direction:row;overflow-x:auto}.aal-type-row{flex:0 0 154px}.aal-add-row{flex:0 0 130px}.aal-head{padding:14px 16px;flex-direction:column}.aal-actions,.aal-search{width:100%;min-width:0}.aal-primary,.aal-ghost{flex:1}.aal-accordions{padding:14px 16px 30px}.aal-cat-shortcuts{gap:6px}.aal-panel-bar{align-items:stretch;flex-direction:column}.aal-grid{grid-template-columns:repeat(auto-fill,minmax(126px,1fr));gap:11px}.aal-name-list label{grid-template-columns:1fr}}
