.mg-page{display:flex;flex-direction:column;gap:15px;min-width:0}.mg-page .card{margin:0}.mg-page h3{margin:0 0 12px}.mg-head,.mg-actions,.mg-tabs,.mg-modes,.mg-pagination{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.mg-head{justify-content:space-between}.mg-head>p{margin:5px 0}.mg-tabs,.mg-modes{margin-bottom:5px}.mg-recipient-tools,.mg-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mg-recipient-summary{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px;padding:12px 0 0}.mg-recipient-summary small{color:var(--dim,#b9b0cc)}.mg-online{font-size:11px;padding:5px 8px;border:1px solid #73dcc066;border-radius:6px;color:#85e4c9}.mg-warning-text{color:#f1cc96}.mg-warning,.mg-notice,.mg-sending{border:1px solid #e1b06766;border-radius:10px;padding:12px;margin:0 0 9px;background:#b18a1710;color:#f3d7aa;line-height:1.6}.mg-notice{border-color:#75dcc766;color:var(--ink,#eee8f8);background:#5fcdbd0b}.mg-sending{border-color:#75dcc799;color:#9debdc;background:#5fcdbd16}.mg-empty{padding:20px 10px;text-align:center;color:var(--dim,#b9b0cc);font-size:13px}.mg-item-rows{display:flex;flex-direction:column;gap:10px}.mg-item-row{display:grid;grid-template-columns:minmax(0,1fr) 130px auto;gap:12px;align-items:center;border-bottom:1px solid var(--line2,#a893c233);padding:10px 0}.mg-gift{display:flex;align-items:center;gap:12px;min-width:0;padding:10px 0}.mg-gift>img{width:52px;height:52px;object-fit:contain;flex-shrink:0}.mg-gift>div{flex:1;min-width:0}.mg-gift strong{font-size:14px;overflow-wrap:anywhere}.mg-gift small{display:block;margin-top:6px;color:var(--dim,#b9b0cc);font-size:11px;overflow-wrap:anywhere}.mg-gift>strong{flex-shrink:0}.mg-item-row>.mg-gift>strong{display:none}.mg-template{padding:12px;border:1px solid var(--line2,#a893c233);border-radius:12px;margin:12px 0}.mg-template dl{display:grid;grid-template-columns:130px minmax(0,1fr);gap:9px;font-size:12px;margin:12px 0 0}.mg-template dt{color:var(--dim,#b9b0cc)}.mg-template dd{margin:0;overflow-wrap:anywhere}.mg-history-tools{display:flex;align-items:end;gap:12px;margin:12px 0}.mg-history-tools>.pw-form-field{flex:1}.mg-pagination{justify-content:center;margin-top:15px;font-size:12px}.mg-page .pw-table-wrap{overflow:auto}.mg-page .pw-table{min-width:650px}.mg-status{display:inline-block;padding:5px 8px;border:1px solid #a893c255;border-radius:6px;font-size:11px;line-height:1.5}.mg-status-DELIVERED{color:#9ce6cd;border-color:#6fd6b566}.mg-status-UNKNOWN{color:#f4c779;border-color:#eab66788}.mg-status-REJECTED{color:#e8a8b5;border-color:#ce889966}.mg-status-SENDING,.mg-status-PREPARING{color:#a4d9ff;border-color:#84bbe966}.mg-receipt{border-color:#79d5c766!important}.mg-receipt>.mg-head h3{margin:0}.mg-id{font-size:12px;margin-top:14px;overflow-wrap:anywhere}.mg-id summary{cursor:pointer;color:var(--dim,#b9b0cc);margin-bottom:8px}.mg-picker{display:flex;flex-direction:column;gap:12px}.mg-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;max-height:min(42vh,360px);overflow:auto;padding:3px}.mg-pick-card{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;border:1px solid var(--line2,#a893c244);border-radius:11px;padding:12px;background:var(--panel2,#241e38);color:var(--ink,#eee8f8);cursor:pointer;text-align:center}.mg-pick-card img{width:58px;height:58px;object-fit:contain}.mg-pick-card strong{font-size:12px;overflow-wrap:anywhere}.mg-pick-card small{font-size:10px;color:var(--dim,#b9b0cc);overflow-wrap:anywhere;max-width:100%}.mg-pick-card:hover{border-color:var(--cyan,#75ddcd)}.mg-pick-card:disabled{opacity:.5;cursor:default}.mg-review{min-width:0}.mg-review>.mg-gift{border-bottom:1px solid var(--line2,#a893c233)}.mg-page button:focus-visible,.mg-picker button:focus-visible{outline:2px solid var(--cyan,#75ddcd);outline-offset:2px}.mg-page textarea{resize:vertical}.mg-page [data-mg-form]{display:flex;flex-direction:column;gap:15px}.mg-page input,.mg-page select,.mg-page textarea,.mg-picker input{box-sizing:border-box;max-width:100%;min-width:0}.mg-page button:disabled{cursor:default}@media(max-width:1000px){.mg-recipient-tools,.mg-form-grid{grid-template-columns:1fr}.mg-item-row{grid-template-columns:minmax(0,1fr) 110px auto}.mg-template dl{grid-template-columns:1fr}.mg-template dd{margin-bottom:5px}.mg-picker-grid{grid-template-columns:repeat(auto-fill,minmax(115px,1fr))}}@media(max-width:650px){.mg-item-row{grid-template-columns:minmax(0,1fr) auto}.mg-item-row>.mg-gift{grid-column:1/-1}.mg-history-tools{align-items:stretch;flex-direction:column}.mg-gift>img{width:42px;height:42px}.mg-recipient-summary{align-items:start;flex-direction:column;gap:6px}}@media(prefers-reduced-motion:reduce){.mg-page *,.mg-picker *{animation:none!important;transition:none!important}}

.mg-template-file{display:block;color:var(--dim,#b9b0cc);font-size:11px;overflow-wrap:anywhere}.mg-picker-grid .mg-pick-card{justify-content:flex-start}.mg-picker-grid .mg-pick-card small{line-height:1.5}

.mg-history-tools>.pw-form-field:has([data-mg-history-days]){flex:0 0 165px}.mg-history-tools select{width:100%}@media(max-width:650px){.mg-history-tools>.pw-form-field:has([data-mg-history-days]){flex:auto}}
