.app-shell.is-meyasu-view .admin-layout{grid-template-columns:var(--menu-width) minmax(320px,628px) minmax(360px,1fr);column-gap:13px}
.app-shell.is-meyasu-view .dashboard-stack{display:block;min-width:0;width:100%}
.app-shell.is-meyasu-view .detail-panel{display:block;grid-column:3;height:auto;min-height:0;border:1px solid #d2b262;border-radius:14px;overflow:visible;margin-left:0}
.meyasu-list{background:#faf8bc;border:1px solid #d2b262;border-radius:14px;padding:16px;min-width:0}
.meyasu-heading{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.meyasu-heading>img{width:145px;max-width:35%;height:auto;object-fit:contain}
.meyasu-heading button{border:0;background:transparent;padding:0;cursor:pointer}
.meyasu-heading button img{width:116px;max-width:100%;display:block}
.meyasu-heading .meyasu-page{border:1px solid #dcad77;border-radius:50%;background:#ffdbac;color:#a16e40;width:36px;height:36px;flex-shrink:0}
.meyasu-heading .meyasu-page:nth-last-child(2){margin-left:auto}
.meyasu-heading button:disabled{opacity:.4;cursor:default}
.meyasu-count{font-size:14px;color:#686c61;margin:10px 0}
.meyasu-card{display:flex;align-items:center;gap:6px;min-height:43px;width:100%;margin-top:6px;padding:9px 10px;background:white;border:1px solid #b6bfba;border-radius:10px;color:#344145;text-align:left;font:inherit;font-size:14px;cursor:pointer}
.meyasu-card span{min-width:0;overflow-wrap:anywhere;flex:1}.meyasu-card img{width:40px;height:auto;flex-shrink:0}.meyasu-card.is-selected{border:2px solid #dba72a;background:#fffbed}.meyasu-card.is-empty{cursor:default}
.meyasu-content{padding:22px;min-width:0}.meyasu-content h2{font-size:19px;margin:0 0 16px;overflow-wrap:anywhere}
.meyasu-form{display:flex;flex-direction:column;gap:14px;color:#3e4d52}.meyasu-form label{display:flex;flex-direction:column;gap:8px;font-weight:600;min-width:0}.meyasu-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.meyasu-form select,.meyasu-form textarea{border:1px solid #b8cbd0;border-radius:10px;background:#fff;color:inherit;font:inherit;width:100%;min-width:0;padding:10px;box-sizing:border-box}
.meyasu-form select{height:46px}.meyasu-form textarea{height:clamp(180px,26vh,220px);resize:vertical;font-weight:400}
.meyasu-attachment-label{font-weight:600}.meyasu-drop{border:2px dashed #b7cdd0;border-radius:10px;background:#f1f9fa;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;padding:12px}.meyasu-drop.dragging{background:#d7f2fa}.meyasu-drop small{flex-basis:100%;text-align:center;font-size:13px;color:#56666c}
.meyasu-content button{font:inherit;border:1px solid #b8cbd0;border-radius:10px;padding:8px 20px;min-height:40px;color:#345361;background:white;cursor:pointer}.meyasu-content button.meyasu-primary{background:#06a6cd;color:white;border-color:#06a6cd;font-weight:600}.meyasu-content button:disabled{opacity:.55;cursor:wait}.meyasu-form [role=status]{margin:0;color:#a34a29;font-size:14px}
.meyasu-files>div{display:flex;justify-content:space-between;align-items:center;gap:10px}.meyasu-files span{overflow-wrap:anywhere;min-width:0;font-size:14px}.meyasu-files button{padding:3px 9px;min-height:30px;flex-shrink:0}
.meyasu-message{border-bottom:1px solid #d7e0df;padding:8px 0 16px;overflow-wrap:anywhere}.meyasu-message>p:first-child{font-size:14px;color:#607176}.meyasu-memo{white-space:pre-wrap}.meyasu-download{display:block;color:#087c9f;margin:8px 0}.meyasu-error{color:#a34a29}
@media(max-width:840px){.app-shell.is-meyasu-view .admin-layout{grid-template-columns:1fr}.app-shell.is-meyasu-view .dashboard-stack,.app-shell.is-meyasu-view .detail-panel{grid-column:1;min-width:0;width:100%}.app-shell.is-meyasu-view .detail-panel{margin-top:14px}.meyasu-content{padding:16px}.meyasu-heading{gap:8px}}

.menu-item[data-view="meyasubako"]{position:relative}.menu-item .meyasu-menu-badge{position:absolute;right:0;top:0;width:32px;height:auto}.menu-item .meyasu-menu-badge[hidden]{display:none}

.meyasu-reply-context{min-width:0;max-height:280px;overflow:auto;border:1px solid #d6dfce;border-radius:10px;background:#fafcf5;padding:14px 16px;overflow-wrap:anywhere}
.meyasu-reply-context h3{margin:0 0 8px;font-size:16px}
.meyasu-reply-context .meyasu-message{border:0;padding:0}
.meyasu-reply-context .meyasu-memo{margin:8px 0}
