.mg-shell{--mg-blue:#2d6df6;--mg-blue-dark:#164dbf;--mg-ink:#17233f;--mg-muted:#68758f;--mg-line:#dfe6f2;--mg-soft:#f3f6fb;--mg-good:#16845b;position:relative;color:var(--mg-ink)}
.mg-shell *{box-sizing:border-box}
.mg-card{background:#fff;border:1px solid var(--mg-line);border-radius:24px;box-shadow:0 12px 32px rgba(35,76,159,.08);overflow:hidden}
.mg-hero{padding:20px;background:linear-gradient(145deg,#f7faff 0%,#eef4ff 62%,#f7fbff 100%);border-bottom:1px solid var(--mg-line)}
.mg-hero-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.mg-eyebrow{font-size:11px;line-height:1.2;text-transform:uppercase;letter-spacing:.1em;color:#5570a7;font-weight:900}
.mg-title{margin:4px 0 0;font-size:clamp(24px,4vw,34px);line-height:1.08;color:var(--mg-ink)}
.mg-lead{margin:8px 0 0;max-width:720px;color:#52617e;font-size:14px;line-height:1.5}
.mg-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.mg-button,.mg-icon-button,.mg-tab,.mg-chip,.mg-upload-choice,.mg-card-select,.mg-day-download{min-height:44px;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.mg-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:14px;padding:10px 15px;font:inherit;font-size:13px;font-weight:900;cursor:pointer;text-decoration:none;white-space:nowrap}
.mg-button:hover{text-decoration:none}
.mg-button-primary{background:linear-gradient(180deg,#3978ff 0%,#2460e5 100%);color:#fff;box-shadow:0 9px 18px rgba(45,109,246,.22)}
.mg-button-secondary{background:#fff;color:#27416f;border-color:#ccd8ec}
.mg-button-ghost{background:transparent;color:#36527f;border-color:transparent}
.mg-button-danger{background:#fff4f3;color:#a8362e;border-color:#f0c9c5}
.mg-button-stop{background:linear-gradient(180deg,#d9433b,#b92e28);color:#fff;border-color:#a72822;box-shadow:0 10px 22px rgba(185,46,40,.24)}
.mg-button-stop span{font-size:13px;line-height:1}.mg-button-stop:hover{background:linear-gradient(180deg,#c93630,#a9241f)}
.mg-button:disabled{opacity:.52;cursor:not-allowed;box-shadow:none}
.mg-storage-line{display:flex;align-items:center;gap:8px;margin-top:14px;color:#53627e;font-size:12px;font-weight:800}
.mg-storage-dot{width:9px;height:9px;border-radius:99px;background:#9ca8bb;box-shadow:0 0 0 4px rgba(156,168,187,.14)}
.mg-storage-line.is-cloud .mg-storage-dot{background:#23a36f;box-shadow:0 0 0 4px rgba(35,163,111,.14)}
.mg-storage-link{border:0;padding:4px;background:none;color:var(--mg-blue-dark);font:inherit;font-weight:900;cursor:pointer}
.mg-toolbar{padding:14px 16px 0;background:#fff}
.mg-tabs{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;padding:2px 2px 12px;scrollbar-width:none}
.mg-tabs::-webkit-scrollbar{display:none}
.mg-tab{scroll-snap-align:start;display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;border:1px solid #d9e2f0;border-radius:999px;padding:7px 13px;background:#fff;color:#445575;font:inherit;font-size:13px;font-weight:900;cursor:pointer}
.mg-tab.active{background:#eaf1ff;border-color:#8fb0f7;color:#194cae;box-shadow:inset 0 0 0 1px rgba(45,109,246,.06)}
.mg-tab-avatar{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#dfeaff,#f4f7ff);color:#31599d;font-size:11px;font-weight:900}
.mg-tab-count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:99px;background:#f0f3f8;color:#64718a;font-size:11px}
.mg-tab.active .mg-tab-count{background:#fff;color:#2354b2}
.mg-filter-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-top:1px solid #edf1f7;border-bottom:1px solid var(--mg-line);background:#fbfcff}
.mg-context-filter{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 16px 0;padding:10px 12px;border:1px solid #bcd1f5;border-radius:14px;background:#eef5ff;color:#254b87;font-size:12px;font-weight:900}
.mg-context-filter[hidden]{display:none}.mg-context-filter button{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border:0;border-radius:50%;background:#dbe8ff;color:#234b91;font:900 18px/1 Arial;cursor:pointer}
.mg-filter-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mg-chip{display:inline-flex;align-items:center;justify-content:center;border:1px solid #d7e0ee;border-radius:999px;padding:7px 12px;background:#fff;color:#52617d;font:inherit;font-size:12px;font-weight:900;cursor:pointer}
.mg-chip.active{background:#243f77;color:#fff;border-color:#243f77}
.mg-select{min-height:44px;border:1px solid #d4deec;border-radius:13px;padding:9px 34px 9px 12px;background:#fff;color:#33496f;font:inherit;font-size:13px;font-weight:800}
.mg-summary{display:flex;align-items:center;gap:14px;min-height:44px;color:#66738b;font-size:12px;font-weight:800}
.mg-summary strong{color:#243856}
.mg-notice{margin:14px 16px 0;padding:12px 14px;border:1px solid #d9e5f7;border-radius:14px;background:#f5f9ff;color:#39547e;font-size:13px;line-height:1.4;font-weight:800}
.mg-notice[hidden]{display:none}
.mg-notice.is-error{background:#fff4f3;border-color:#f0c7c3;color:#9b332d}
.mg-notice.is-good{background:#effaf5;border-color:#bae4d2;color:#176b4d}
.mg-library{padding:14px 16px 24px;min-height:260px}
.mg-empty{display:grid;place-items:center;text-align:center;min-height:300px;padding:32px;border:1.5px dashed #ccd8e8;border-radius:20px;background:#fbfcff}
.mg-empty-icon{font-size:42px;line-height:1}
.mg-empty h3{margin:12px 0 5px;font-size:19px}
.mg-empty p{margin:0 0 16px;max-width:420px;color:var(--mg-muted);font-size:14px;line-height:1.5}
.mg-day{margin-top:8px}
.mg-day+.mg-day{margin-top:24px}
.mg-day-head{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 2px 9px;background:rgba(255,255,255,.94);backdrop-filter:blur(10px)}
.mg-day-title{margin:0;font-size:15px;line-height:1.2;color:#283a59}
.mg-day-meta{margin-top:3px;color:#7b879c;font-size:11px;font-weight:800}
.mg-day-download{border:0;border-radius:12px;padding:8px 10px;background:#eef4ff;color:#2455b3;font:inherit;font-size:12px;font-weight:900;cursor:pointer}
.mg-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.mg-informational-section{margin-bottom:24px}.mg-informational-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 2px 9px}.mg-informational-head p{margin:4px 0 0;color:#64748b;font-size:11px;font-weight:800;line-height:1.4}
.mg-media-card{position:relative;min-width:0;border:1px solid #e1e7f0;border-radius:16px;background:#f0f3f8;overflow:hidden;aspect-ratio:1/1;box-shadow:0 5px 13px rgba(25,49,92,.08)}
.mg-media-card[data-mg-info-draggable]{cursor:grab}.mg-media-card[data-mg-info-draggable]:active{cursor:grabbing}.mg-media-card.is-dragging{opacity:.46;transform:scale(.97)}
.mg-media-card.is-selected{box-shadow:0 0 0 3px var(--mg-blue),0 7px 18px rgba(45,109,246,.2)}
.mg-media-open{display:block;width:100%;height:100%;padding:0;border:0;background:#e9eef6;cursor:pointer}
.mg-media-open img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s ease;user-select:none;-webkit-user-drag:none}
.mg-media-card:hover .mg-media-open img{transform:scale(1.02)}
.mg-card-gradient{position:absolute;inset:auto 0 0;height:48%;pointer-events:none;background:linear-gradient(180deg,transparent,rgba(4,12,27,.76))}
.mg-card-meta{position:absolute;left:9px;right:9px;bottom:8px;display:flex;align-items:flex-end;justify-content:space-between;gap:6px;color:#fff;pointer-events:none;text-shadow:0 1px 3px rgba(0,0,0,.5)}
.mg-card-person{min-width:0;font-size:11px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mg-card-time{font-size:10px;font-weight:800;white-space:nowrap}
.mg-video-badge{position:absolute;left:9px;top:9px;display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:99px;background:rgba(7,17,36,.72);color:#fff;font-size:10px;font-weight:900;backdrop-filter:blur(6px);pointer-events:none}
.mg-info-badge{position:absolute;left:9px;top:9px;display:inline-flex;align-items:center;min-height:25px;padding:5px 8px;border-radius:99px;background:rgba(8,112,83,.88);color:#fff;font-size:10px;font-weight:900;backdrop-filter:blur(6px);pointer-events:none}.mg-info-badge.expired{background:rgba(99,107,123,.88)}
.mg-info-order-controls{position:absolute;left:50%;bottom:8px;display:flex;align-items:center;gap:4px;padding:4px;border:1px solid rgba(255,255,255,.42);border-radius:999px;background:rgba(8,20,38,.78);box-shadow:0 5px 16px rgba(0,0,0,.22);backdrop-filter:blur(8px);transform:translateX(-50%)}.mg-info-order-controls button{display:grid;place-items:center;width:34px;height:30px;border:0;border-radius:999px;background:rgba(255,255,255,.16);color:#fff;font:900 18px/1 Arial;cursor:pointer}.mg-info-order-controls button:hover{background:rgba(255,255,255,.28)}.mg-info-order-controls button:disabled{opacity:.28;cursor:default}.mg-info-drag-handle{display:grid;place-items:center;width:24px;color:#fff;font-size:17px;line-height:1}
.mg-card-select{position:absolute;right:5px;top:5px;width:44px;border:0;border-radius:99px;background:transparent;cursor:pointer}
.mg-card-select::before{content:'';display:block;width:23px;height:23px;margin:auto;border:2px solid #fff;border-radius:50%;background:rgba(10,20,40,.35);box-shadow:0 2px 7px rgba(0,0,0,.24)}
.mg-media-card.is-selected .mg-card-select::before{content:'✓';display:grid;place-items:center;background:var(--mg-blue);border-color:#fff;color:#fff;font-size:14px;font-weight:900}
.mg-selection-bar{position:sticky;bottom:max(10px,env(safe-area-inset-bottom));z-index:12;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 14px 14px;padding:10px 12px;border:1px solid rgba(141,163,205,.5);border-radius:18px;background:rgba(24,42,78,.95);color:#fff;box-shadow:0 18px 38px rgba(11,25,53,.3);backdrop-filter:blur(14px)}
.mg-selection-bar[hidden]{display:none}
.mg-selection-copy{min-width:0;font-size:13px;font-weight:900}
.mg-selection-actions{display:flex;align-items:center;gap:7px}
.mg-selection-bar .mg-button{min-height:44px}
.mg-selection-bar .mg-button-primary{background:#fff;color:#183f94;box-shadow:none}
.mg-selection-bar .mg-button-ghost{color:#fff}
.mg-action-label-short{display:none}
.mg-fab{display:none}
.mg-modal{position:fixed;inset:0;z-index:220;display:none;align-items:flex-end;justify-content:center;padding:18px;background:rgba(8,17,36,.58);backdrop-filter:blur(4px)}
.mg-modal.open{display:flex}
.mg-sheet{width:min(680px,100%);max-height:min(88vh,820px);display:flex;flex-direction:column;border-radius:24px;background:#fff;box-shadow:0 24px 80px rgba(0,0,0,.32);overflow:hidden}
.mg-sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 18px 14px;border-bottom:1px solid var(--mg-line)}
.mg-sheet-head h3{margin:2px 0 0;font-size:20px}
.mg-sheet-head p{margin:5px 0 0;color:var(--mg-muted);font-size:13px;line-height:1.45}
.mg-icon-button{width:44px;flex:0 0 44px;border:0;border-radius:50%;background:#eef2f8;color:#304363;font:inherit;font-size:19px;font-weight:900;cursor:pointer}
.mg-sheet-body{overflow:auto;padding:16px 18px 20px;overscroll-behavior:contain}
.mg-safety{display:flex;gap:10px;padding:12px 13px;border-radius:15px;background:#fff8e8;border:1px solid #f1dda7;color:#765a19;font-size:13px;line-height:1.45;font-weight:800}
.mg-upload-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.mg-upload-choice{display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid #cfdbee;border-radius:15px;padding:12px;background:#f8faff;color:#2a4677;font:inherit;font-size:13px;font-weight:900;cursor:pointer}
.mg-upload-choice.primary{background:#eaf1ff;border-color:#a9c0ee;color:#174cae}
.mg-publication-settings{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(150px,.75fr) minmax(150px,.75fr);align-items:end;gap:12px;margin-top:14px;padding:13px;border:1px solid #bfe4d7;border-radius:16px;background:#f1fbf7}.mg-publication-settings strong{display:block;color:#12694f;font-size:13px}.mg-publication-settings p{margin:4px 0 0;color:#547168;font-size:11px;line-height:1.45}.mg-publication-settings label{display:grid;gap:6px;color:#31584d;font-size:11px;font-weight:900}.mg-publication-settings [hidden]{display:none}.mg-date-input{width:100%;min-height:44px;border:1px solid #c6dcd4;border-radius:13px;padding:9px 11px;background:#fff;color:#27473e;font:inherit;font-size:13px;font-weight:800}
.mg-camera[hidden],[data-mg-upload-picker][hidden],[data-mg-upload-footer][hidden]{display:none!important}
.mg-camera{display:grid;gap:12px;max-width:520px;margin:0 auto;color:#fff}
.mg-camera-topbar{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:10px}
.mg-camera-back,.mg-camera-flip{display:grid;place-items:center;width:44px;height:44px;border:1px solid #d6dfed;border-radius:14px;background:#f6f8fc;color:#263f69;font-family:inherit;font-size:24px;font-weight:900;line-height:1;cursor:pointer}
.mg-camera-flip{font-size:21px}.mg-camera-flip:disabled{opacity:.42;cursor:not-allowed}
.mg-camera-modes{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:14px;background:#e8edf5}
.mg-camera-modes button{min-height:40px;border:0;border-radius:11px;background:transparent;color:#65728a;font:inherit;font-size:13px;font-weight:900;cursor:pointer}
.mg-camera-modes button.is-active{background:#fff;color:#184eaf;box-shadow:0 2px 8px rgba(27,56,105,.13)}
.mg-camera-modes button:disabled{cursor:not-allowed}
.mg-camera-stage{position:relative;display:grid;place-items:center;min-height:290px;overflow:hidden;border-radius:21px;background:#080c14;aspect-ratio:4/3}
.mg-camera-stage video{display:block;width:100%;height:100%;object-fit:cover;background:#080c14}
.mg-camera-stage::after{content:'';position:absolute;inset:0;pointer-events:none;background:#fff;opacity:0;transition:opacity .16s ease}
.mg-camera-stage.is-flashing::after{opacity:.85;transition:none}
.mg-camera-message{position:absolute;left:12px;right:12px;bottom:12px;padding:10px 12px;border-radius:12px;background:rgba(8,17,32,.82);color:#fff;text-align:center;font-size:12px;font-weight:850;line-height:1.4;backdrop-filter:blur(8px)}
.mg-camera-message[hidden]{display:none}.mg-camera-message.is-warning{background:rgba(115,72,11,.9)}
.mg-camera-recording{position:absolute;top:12px;left:12px;display:flex;align-items:center;gap:7px;padding:7px 10px;border-radius:99px;background:rgba(10,15,25,.8);font-size:11px;font-variant-numeric:tabular-nums;backdrop-filter:blur(7px)}
.mg-camera-recording[hidden]{display:none}.mg-camera-recording span{width:9px;height:9px;border-radius:50%;background:#ff3b30;box-shadow:0 0 0 4px rgba(255,59,48,.2)}
.mg-camera-controls{display:grid;grid-template-columns:1fr 76px 1fr;align-items:center;gap:12px;min-height:82px;padding:0 6px}
.mg-camera-capture{display:grid;place-items:center;width:72px;height:72px;padding:5px;border:4px solid #d5dfef;border-radius:50%;background:#fff;cursor:pointer;box-shadow:0 7px 18px rgba(19,49,101,.18)}
.mg-camera-capture span{display:block;width:100%;height:100%;border-radius:50%;background:#fff;border:1px solid #bcc9dc}
.mg-camera-capture.is-video span{width:44px;height:44px;border:0;background:#e13f39;transition:border-radius .15s ease,transform .15s ease}
.mg-camera-capture.is-recording span{width:28px;height:28px;border-radius:7px;transform:scale(.95)}
.mg-camera-hint{color:#5b6a84;font-size:11px;font-weight:850;line-height:1.35}
.mg-upload-queue{display:grid;gap:10px;margin-top:16px}
.mg-upload-item{padding:12px;border:1px solid #e0e6ef;border-radius:15px;background:#fff}
.mg-upload-item-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mg-upload-name{min-width:0;color:#273a59;font-size:13px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mg-upload-status{flex:0 0 auto;color:#6d7890;font-size:11px;font-weight:900}
.mg-upload-status.good{color:var(--mg-good)}
.mg-upload-status.bad{color:#a23830}
.mg-progress{height:7px;margin-top:9px;border-radius:99px;background:#e7ecf3;overflow:hidden}
.mg-progress span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2d6df6,#55a0ff);transition:width .18s ease}
.mg-upload-item-actions{display:flex;justify-content:flex-end;margin-top:7px}
.mg-upload-item-actions button{border:0;background:none;color:#2858b5;font:inherit;font-size:12px;font-weight:900;cursor:pointer;min-height:32px}
.mg-sheet-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--mg-line);background:#fbfcff}
.mg-sheet-total{color:#5c6a84;font-size:12px;font-weight:800}
.mg-viewer{position:fixed;inset:0;z-index:240;display:none;background:#05070c;color:#fff}
.mg-viewer.open{display:flex;flex-direction:column}
.mg-viewer-top{position:absolute;z-index:5;left:0;right:0;top:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left));background:linear-gradient(180deg,rgba(0,0,0,.72),transparent)}
.mg-viewer-top-group{display:flex;align-items:center;gap:8px}
.mg-viewer .mg-icon-button{background:rgba(255,255,255,.14);color:#fff;backdrop-filter:blur(8px)}
.mg-viewer-counter{font-size:12px;font-weight:900}
.mg-viewer-stage{position:relative;display:flex;align-items:center;justify-content:center;flex:1;min-height:0;padding:66px 54px 98px;touch-action:pan-y}
.mg-viewer-stage>[data-mg-viewer-media]{display:flex;align-items:center;justify-content:center;max-width:100%;max-height:100%;width:100%;height:100%}
.mg-viewer-stage img,.mg-viewer-stage video{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.mg-viewer-stage video{background:#000}
.mg-viewer-arrow{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:56px;border:0;border-radius:15px;background:rgba(255,255,255,.12);color:#fff;font-size:30px;cursor:pointer;backdrop-filter:blur(8px)}
.mg-viewer-arrow.prev{left:max(8px,env(safe-area-inset-left))}
.mg-viewer-arrow.next{right:max(8px,env(safe-area-inset-right))}
.mg-viewer-bottom{position:absolute;z-index:5;left:0;right:0;bottom:0;display:flex;align-items:flex-end;justify-content:space-between;gap:14px;padding:36px max(16px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:linear-gradient(0deg,rgba(0,0,0,.78),transparent)}
.mg-viewer-meta{min-width:0}
.mg-viewer-name{font-size:14px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mg-viewer-detail{margin-top:4px;color:#cbd3df;font-size:12px;font-weight:800}
.mg-viewer-actions{display:flex;gap:8px;flex:0 0 auto}
.mg-viewer-actions .mg-button{background:rgba(255,255,255,.14);color:#fff;border-color:rgba(255,255,255,.18);backdrop-filter:blur(8px)}
.mg-viewer-actions .mg-button-danger{background:rgba(159,44,37,.78);border-color:rgba(255,184,178,.42)}
.mg-storage-panel{display:grid;gap:12px}
.mg-tv-sheet{max-width:560px}.mg-tv-panel{display:grid;gap:18px}.mg-tv-intro{text-align:center;padding:8px 8px 2px}.mg-tv-intro h4,.mg-tv-source h4,.mg-tv-native h4{margin:10px 0 6px;color:#263a5b;font-size:16px}.mg-tv-intro p,.mg-tv-native p{margin:0;color:#6a7690;font-size:13px;line-height:1.55}.mg-tv-icon{display:grid;place-items:center;width:64px;height:64px;margin:auto;border-radius:20px;background:linear-gradient(145deg,#e9f1ff,#d9e7ff);color:#2458ba;font-size:31px}.mg-tv-code-label{display:grid;gap:7px;color:#344968;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.mg-tv-code{width:100%;height:64px;border:2px solid #b8c9e7;border-radius:17px;background:#f8faff;color:#17315f;text-align:center;font:900 31px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.22em}.mg-tv-code:focus{border-color:#3d75df;outline:4px solid #dbe7ff}.mg-tv-wide{width:100%;justify-content:center}.mg-tv-native{padding:14px;border:1px solid #dce5f3;border-radius:17px;background:#f8faff}.mg-tv-native-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:11px 0}.mg-tv-native google-cast-launcher{width:44px;height:44px;--connected-color:#2458ba;--disconnected-color:#425878}.mg-tv-connected{display:flex;align-items:center;gap:11px;padding:13px 14px;border:1px solid #b9ddc5;border-radius:16px;background:#f0fbf3}.mg-tv-connected strong,.mg-tv-connected span{display:block}.mg-tv-connected strong{color:#28563a;font-size:14px}.mg-tv-connected div>span{margin-top:3px;color:#598068;font-size:12px;font-weight:800}.mg-tv-live{width:12px;height:12px;border-radius:50%;background:#2db767;box-shadow:0 0 0 6px #d4f1df}.mg-tv-source-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.mg-tv-remote{display:flex;align-items:center;justify-content:center;gap:18px;padding:8px}.mg-tv-remote button{display:grid;place-items:center;width:54px;height:54px;border:1px solid #ccd8eb;border-radius:18px;background:#f7f9fd;color:#214784;font-size:29px;font-weight:900;cursor:pointer}.mg-tv-remote button.play{width:66px;height:66px;border:0;border-radius:50%;background:#2458ba;color:#fff;font-size:23px;box-shadow:0 12px 28px #2458ba44}.mg-tv-settings{display:grid;gap:11px;padding:14px;border:1px solid #dce5f3;border-radius:17px}.mg-tv-settings label{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#344968;font-size:13px;font-weight:850}.mg-tv-settings input{width:20px;height:20px;accent-color:#2458ba}.mg-tv-settings input[type="range"]{width:min(210px,48%);height:auto}.mg-tv-settings .mg-select{min-height:42px;padding:7px 36px 7px 12px}
.mg-cast-status{display:flex;align-items:center;gap:9px;margin:11px 0;padding:11px 12px;border:1px solid #d8e2f1;border-radius:13px;background:#fff;color:#52617d;font-size:12px;font-weight:850;line-height:1.4}.mg-cast-status-dot{width:10px;height:10px;flex:0 0 10px;border-radius:50%;background:#8090a9}.mg-cast-status.is-loading .mg-cast-status-dot{background:#e7a729;box-shadow:0 0 0 4px #fff0c8}.mg-cast-status.is-ready .mg-cast-status-dot{background:#2d6df6;box-shadow:0 0 0 4px #dbe8ff}.mg-cast-status.is-connected{border-color:#b9ddc5;background:#f0fbf3;color:#28563a}.mg-cast-status.is-connected .mg-cast-status-dot{background:#2db767;box-shadow:0 0 0 4px #d4f1df}.mg-cast-status.is-error,.mg-cast-status.is-no-devices{border-color:#efcac6;background:#fff5f4;color:#913b35}.mg-cast-status.is-error .mg-cast-status-dot,.mg-cast-status.is-no-devices .mg-cast-status-dot{background:#c94a40}
.mg-cast-local-help{display:grid;gap:9px;min-width:0;padding:13px;border:1px solid #efcac6;border-radius:14px;background:#fff7f5;color:#713a36}.mg-cast-local-help strong{font-size:12px}.mg-cast-local-help>span{font-size:11px;line-height:1.45}.mg-cast-local-help .mg-button{min-width:0;white-space:normal;text-align:center;line-height:1.25}.mg-cast-local-help small{color:#705e5c;font-size:10px;line-height:1.45;overflow-wrap:anywhere}.mg-cast-local-help small a{color:#245fcf;font-weight:900}
.mg-player{display:grid;gap:13px;padding:13px;border:1px solid #d8e3f2;border-radius:18px;background:#fff;box-shadow:0 8px 22px rgba(30,65,120,.07)}.mg-player-empty{padding:18px;border:1px dashed #cbd7e8;border-radius:15px;color:#687895;text-align:center;font-size:12px;font-weight:800}.mg-player-now{display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:11px}.mg-player-now img{width:58px;height:58px;border-radius:13px;background:#e8eef8;object-fit:cover}.mg-player-now div{min-width:0}.mg-player-now small,.mg-player-now strong,.mg-player-now span{display:block}.mg-player-now small{color:#637a9f;font-size:8px;font-weight:950;letter-spacing:.08em}.mg-player-now strong{margin-top:3px;overflow:hidden;color:#243856;font-size:12px;white-space:nowrap;text-overflow:ellipsis}.mg-player-now span{margin-top:3px;color:#76839a;font-size:10px;font-weight:750}.mg-player-timeline{display:grid;gap:4px}.mg-player-timeline input,.mg-player-volume input{width:100%;height:28px;margin:0;accent-color:#2d6df6;cursor:pointer}.mg-player-timeline>div{display:flex;justify-content:space-between;color:#6c7890;font-size:9px;font-variant-numeric:tabular-nums;font-weight:850}.mg-player-photo-state{display:flex;justify-content:space-between;gap:8px;padding:8px 10px;border-radius:11px;background:#f0f5ff;color:#42608f;font-size:9px;font-weight:900}.mg-player-controls{display:grid;grid-template-columns:repeat(5,1fr);align-items:center;justify-items:center;gap:7px}.mg-player-controls button,.mg-player-volume button{display:grid;place-items:center;width:48px;height:48px;padding:0;border:1px solid #cbd8eb;border-radius:15px;background:#f6f9fe;color:#214784;font-size:25px;font-weight:950;cursor:pointer;touch-action:manipulation}.mg-player-controls button:disabled{opacity:.28;cursor:not-allowed}.mg-player-controls .mg-player-play{width:60px;height:60px;border:0;border-radius:50%;background:linear-gradient(180deg,#3478fb,#205acb);color:#fff;font-size:21px;box-shadow:0 10px 24px #2458ba4a}.mg-tv-method-universal .mg-player-controls .mg-player-play{background:linear-gradient(180deg,#835fe0,#6542bd);box-shadow:0 10px 24px #6542bd44}.mg-player-skip span{font-size:11px}.mg-player.is-photo .mg-player-skip{visibility:hidden}.mg-player-volume{display:grid;grid-template-columns:44px minmax(0,1fr) 34px;align-items:center;gap:9px;padding-top:2px;border-top:1px solid #edf1f7}.mg-player-volume button{width:44px;height:44px;border:0;background:transparent;font-size:19px}.mg-player-volume>span{color:#66758d;text-align:right;font-size:9px;font-variant-numeric:tabular-nums;font-weight:900}.mg-tv-source-grid .mg-button{min-height:44px;padding:8px 7px;text-align:center;white-space:normal;line-height:1.2}.mg-player button:focus-visible,.mg-player input:focus-visible{outline:3px solid rgba(45,109,246,.38);outline-offset:2px}
.mg-tv-sheet{max-width:880px}.mg-tv-choice-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 2px 0}.mg-tv-choice-intro strong{color:#243856;font-size:15px}.mg-tv-choice-intro span{color:#6d7890;font-size:12px;font-weight:800}.mg-tv-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:14px}.mg-tv-method{position:relative;display:grid;gap:13px;min-width:0;padding:17px;border:1px solid #dbe4f1;border-radius:22px;background:#fff;overflow:hidden}.mg-tv-method::before{content:'';position:absolute;inset:0 0 auto;height:5px}.mg-tv-method-native{background:linear-gradient(180deg,#f4f8ff 0,#fff 34%)}.mg-tv-method-native::before{background:linear-gradient(90deg,#2468e8,#5a98ff)}.mg-tv-method-universal{background:linear-gradient(180deg,#f8f5ff 0,#fff 34%)}.mg-tv-method-universal::before{background:linear-gradient(90deg,#6b4bd1,#a676ee)}.mg-tv-method-universal.is-connected{border-color:#bfb1e6}.mg-tv-method-head{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px}.mg-method-number{display:grid;place-items:center;width:38px;height:38px;border-radius:13px;background:#245fcf;color:#fff;font-size:18px;font-weight:950}.mg-tv-method-universal .mg-method-number{background:#704cc6}.mg-method-kind{display:block;color:#687895;font-size:9px;font-weight:950;letter-spacing:.08em;text-transform:uppercase}.mg-tv-method h4{margin:2px 0 0;color:#223758;font-size:17px}.mg-method-badge{align-self:start;padding:5px 8px;border-radius:99px;background:#e6efff;color:#2858b5;font-size:9px;font-weight:950;text-transform:uppercase;white-space:nowrap}.mg-tv-method-universal .mg-method-badge{background:#eee7ff;color:#6542bd}.mg-method-summary{min-height:40px;margin:0;color:#5f6f89;font-size:13px;line-height:1.5}.mg-method-device{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid #d7e2f3;border-radius:14px;background:#fff}.mg-method-device-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:11px;background:#e8f0ff;color:#205ccf;font-size:18px}.mg-method-device span:last-child{min-width:0}.mg-method-device small,.mg-method-device strong{display:block}.mg-method-device small{color:#7c899d;font-size:8px;font-weight:950;letter-spacing:.09em}.mg-method-device strong{margin-top:2px;overflow:hidden;color:#344968;font-size:11px;white-space:nowrap;text-overflow:ellipsis}.mg-method-foot{padding-top:3px;color:#7b879a;font-size:10px;line-height:1.45;font-weight:750}.mg-method-steps{display:grid;gap:10px;margin:0;padding:0;list-style:none}.mg-method-steps li{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:start;gap:9px;color:#53647f;font-size:12px;line-height:1.4}.mg-method-steps li>span{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#eee7ff;color:#6542bd;font-weight:950}.mg-method-steps strong{display:block;margin-top:3px;overflow-wrap:anywhere;color:#3d315d}.mg-copy-url{justify-self:start;border:0;padding:3px 0;background:none;color:#6646bd;font:inherit;font-size:11px;font-weight:900;text-decoration:underline;cursor:pointer}.mg-button-universal{background:linear-gradient(180deg,#805bdd,#6542bd);color:#fff;box-shadow:0 9px 18px rgba(101,66,189,.22)}.mg-tv-source h5{margin:0 0 9px;color:#3d315d;font-size:13px}.mg-tv-settings-details{border:1px solid #e0d9f0;border-radius:14px;background:#fbfaff}.mg-tv-settings-details summary{padding:12px 14px;color:#5c438e;font-size:12px;font-weight:900;cursor:pointer}.mg-tv-settings-details[open] summary{border-bottom:1px solid #e7e0f4}.mg-tv-settings-details .mg-tv-settings{border:0;border-radius:0;background:transparent}
.mg-storage-stat{padding:14px;border:1px solid #dfe6f1;border-radius:16px;background:#fbfcff}
.mg-storage-stat strong{display:block;font-size:15px;color:#263a5b}
.mg-storage-stat span{display:block;margin-top:4px;color:#6a7690;font-size:12px;line-height:1.45}
.mg-breakdown{display:grid;gap:8px;margin-top:4px}
.mg-breakdown-row{display:grid;grid-template-columns:minmax(90px,1fr) 2fr auto;align-items:center;gap:10px;font-size:12px;font-weight:800}
.mg-breakdown-track{height:7px;border-radius:99px;background:#e8edf5;overflow:hidden}
.mg-breakdown-track span{display:block;height:100%;border-radius:inherit;background:#4f83ea}
.mg-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.mg-button:focus-visible,.mg-icon-button:focus-visible,.mg-tab:focus-visible,.mg-chip:focus-visible,.mg-media-open:focus-visible,.mg-card-select:focus-visible,.mg-day-download:focus-visible,.mg-upload-choice:focus-visible,.mg-select:focus-visible{outline:3px solid rgba(45,109,246,.38);outline-offset:2px}
@media (max-width:1000px){.mg-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:760px){
  .mg-card{border-radius:20px}
  .mg-hero{padding:18px 16px}
  .mg-hero-top{display:block}
  .mg-actions{justify-content:flex-start;margin-top:14px}
  .mg-actions .mg-button-primary{display:none}
  .mg-filter-row{align-items:flex-start;flex-direction:column}
  .mg-filter-row>.mg-summary{width:100%;justify-content:space-between}
  .mg-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .mg-media-card{border-radius:10px;border:0;box-shadow:none}
  .mg-card-meta{left:7px;right:7px;bottom:6px}
  .mg-card-person{font-size:10px}
  .mg-card-time{display:none}
  .mg-video-badge{left:6px;top:6px;padding:4px 6px}
  .mg-info-badge{left:6px;top:6px;padding:4px 6px}
  .mg-publication-settings{grid-template-columns:1fr;align-items:stretch}
  .mg-card-select{right:1px;top:1px}
  .mg-fab{position:fixed;right:max(84px,calc(env(safe-area-inset-right) + 76px));bottom:max(14px,env(safe-area-inset-bottom));z-index:80;display:flex;align-items:center;justify-content:center;gap:7px;width:auto;min-width:104px;height:58px;padding:0 16px;border:0;border-radius:19px;background:linear-gradient(180deg,#3b7aff,#205bdc);color:#fff;box-shadow:0 16px 30px rgba(29,78,178,.34);cursor:pointer}
  .mg-fab span{font-size:27px;line-height:1}.mg-fab strong{font:900 14px/1 inherit;letter-spacing:.01em}
  .mg-shell.has-selection .mg-fab{display:none}
  .mg-selection-bar{position:fixed;left:10px;right:10px;bottom:max(8px,env(safe-area-inset-bottom));z-index:160;display:grid;grid-template-columns:auto minmax(0,1fr);margin:0}
  .mg-selection-actions{min-width:0;justify-content:flex-end}
  .mg-selection-actions .mg-button{padding-inline:12px}
  .mg-selection-bar .mg-button-ghost{display:none}
  .mg-action-label-full{display:none}
  .mg-action-label-short{display:inline}
  .mg-modal{padding:0;align-items:flex-end}
  .mg-sheet{max-height:92dvh;border-radius:24px 24px 0 0}
  .mg-sheet::before{content:'';width:42px;height:5px;align-self:center;margin-top:8px;border-radius:99px;background:#d4dbe7}
  .mg-viewer-stage{padding:64px 0 112px}
  .mg-viewer-arrow{display:none}
  .mg-viewer-bottom{align-items:flex-start;flex-direction:column}
  .mg-viewer-actions{width:100%}
  .mg-viewer-actions .mg-button{flex:1}
  .mg-tv-methods{grid-template-columns:1fr}.mg-tv-choice-intro{align-items:flex-start;flex-direction:column;gap:3px}.mg-tv-method{padding:16px}.mg-method-summary{min-height:0}.mg-tv-source-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .mg-camera-stage{min-height:0;max-height:52dvh;aspect-ratio:3/4}.mg-camera-controls{grid-template-columns:minmax(0,1fr) 76px minmax(0,1fr)}
}
@media (max-width:430px){
  .mg-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .mg-upload-choices{grid-template-columns:1fr}
  .mg-summary{gap:8px}
  .mg-summary span:nth-child(2){display:none}
  .mg-breakdown-row{grid-template-columns:minmax(80px,1fr) 1.5fr auto}
  .mg-tv-native-actions .mg-button{width:100%;justify-content:center}.mg-player{padding:12px}.mg-player-controls{gap:4px}.mg-player-controls button{width:46px;height:46px}.mg-player-controls .mg-player-play{width:58px;height:58px}
}
@media (prefers-reduced-motion:reduce){.mg-shell *{scroll-behavior:auto!important;transition:none!important}}
