.mdw-ui-overlay{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:24px;background:rgba(7,9,16,.65);backdrop-filter:blur(8px);font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:var(--theme-text,#e6e9f0)}
.mdw-ui-modal{width:min(440px,100%);max-height:calc(100dvh - 48px);overflow:auto;border:1px solid var(--theme-line,#323947);border-radius:18px;background:var(--theme-surface,#171b22);box-shadow:0 24px 90px #0007;text-align:left;outline:none}
.mdw-ui-wide{width:min(880px,100%)}
.mdw-ui-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:22px 24px 18px;border-bottom:1px solid var(--theme-line,#323947)}
.mdw-ui-heading h2{font-size:19px;line-height:1.3;margin:0;font-weight:700;color:inherit}.mdw-ui-heading p{font-size:13px;line-height:1.55;margin:8px 0 0;color:var(--theme-muted,#a2adbe);white-space:pre-wrap;overflow-wrap:anywhere}
.mdw-ui-modal button,.mdw-ui-modal input{font:inherit}.mdw-ui-modal button{cursor:pointer}.mdw-ui-modal button:disabled{cursor:default;opacity:.55}
.mdw-ui-icon{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;padding:0;border:0;border-radius:9px;background:transparent;color:var(--theme-muted,#a2adbe)}.mdw-ui-icon:hover{background:var(--theme-hover,#ffffff0a);color:var(--theme-text,#e6e9f0)}
.mdw-ui-body{padding:22px 24px 0;display:flex;flex-direction:column;gap:9px}.mdw-ui-body label{font-size:13px;font-weight:600}.mdw-ui-body input,.mdw-screen-search input{min-width:0;width:100%;padding:12px 13px;border:1px solid var(--theme-line,#323947);border-radius:9px;background:var(--theme-bg2,#10141b);color:var(--theme-text,#e6e9f0);outline:none}.mdw-ui-body small{font-size:12px;color:var(--theme-muted,#a2adbe)}
.mdw-ui-body input:focus,.mdw-ui-modal button:focus-visible{outline:2px solid var(--theme-accent,#818cf8);outline-offset:3px}.mdw-ui-body input[aria-invalid=true]{border-color:var(--theme-danger,#ef8585)}
.mdw-ui-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:22px 24px;flex-wrap:wrap}.mdw-ui-button{min-height:40px;padding:9px 17px;border:1px solid var(--theme-line,#323947);border-radius:9px;background:var(--theme-surface2,#222837);color:var(--theme-text,#e6e9f0);font-size:13px;font-weight:600}.mdw-ui-button:hover{filter:brightness(1.08)}.mdw-ui-primary{border-color:transparent;background:var(--theme-accent,#818cf8);color:var(--theme-on-accent,#101424)}.mdw-ui-danger{border-color:transparent;background:var(--theme-danger-fill,#e85868);color:var(--theme-on-danger,#fff)}
.mdw-ui-error{padding:11px 13px;margin:18px 24px 0;border:1px solid var(--theme-danger-border,#e8586866);border-radius:9px;background:var(--theme-danger-soft,#e858681a);font-size:13px;color:var(--theme-danger,#ef8585);overflow-wrap:anywhere}
.mdw-screen-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 24px 0}.mdw-screen-tabs{display:flex;gap:6px;padding:4px;background:var(--theme-bg2,#10141b);border-radius:11px}.mdw-screen-tabs button{display:flex;align-items:center;gap:8px;border:0;border-radius:8px;padding:10px 14px;background:transparent;color:var(--theme-muted,#a2adbe);font-size:13px}.mdw-screen-tabs button[aria-selected=true]{background:var(--theme-surface3,#303746);color:var(--theme-text,#e6e9f0)}.mdw-screen-tabs small{font-size:11px;opacity:.8}
.mdw-screen-search{display:flex;align-items:center;gap:10px;margin:18px 24px;color:var(--theme-muted,#a2adbe)}.mdw-screen-search input{padding:10px 12px;font-size:13px}
.mdw-screen-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:0 24px;max-height:390px;overflow-y:auto}.mdw-screen-source{min-width:0;padding:5px;border:2px solid transparent;border-radius:12px;background:var(--theme-bg2,#10141b);color:var(--theme-text,#e6e9f0);text-align:left}.mdw-screen-source.selected{border-color:var(--theme-accent,#818cf8);background:var(--theme-accent-soft,#818cf81a)}.mdw-screen-source:hover{border-color:var(--theme-line2,#556079)}.mdw-screen-source.selected:hover{border-color:var(--theme-accent,#818cf8)}
.mdw-screen-thumbnail{position:relative;display:grid;place-items:center;aspect-ratio:16/9;overflow:hidden;border-radius:8px;background:var(--theme-bg,#111318);color:var(--theme-muted,#a2adbe)}.mdw-screen-thumbnail>img{width:100%;height:100%;object-fit:contain}.mdw-screen-thumbnail>span{position:absolute;right:8px;bottom:8px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--theme-accent,#818cf8);color:var(--theme-on-accent,#101424)}.mdw-screen-name{display:flex;align-items:center;gap:7px;padding:11px 7px 7px;min-width:0}.mdw-screen-name img{width:18px;height:18px;object-fit:contain}.mdw-screen-name strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mdw-screen-empty{grid-column:1/-1;text-align:center;padding:32px 12px;font-size:13px;color:var(--theme-muted,#a2adbe)}.mdw-screen-summary{flex:1;min-width:0;max-width:100%;font-size:12px;color:var(--theme-muted,#a2adbe);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
@media(max-width:600px){.mdw-ui-overlay{padding:12px}.mdw-ui-modal{max-height:calc(100dvh - 24px);border-radius:14px}.mdw-ui-heading{padding:18px}.mdw-ui-body{padding:18px 18px 0}.mdw-ui-actions{padding:18px}.mdw-ui-error{margin:16px 18px 0}.mdw-screen-toolbar{padding:16px 18px 0}.mdw-screen-search{margin:16px 18px}.mdw-screen-grid{padding:0 18px;grid-template-columns:repeat(2,minmax(0,1fr));max-height:45dvh}.mdw-screen-summary{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.mdw-ui-modal *{scroll-behavior:auto}}
.mdw-legacy-control{display:inline-block;min-width:0;width:100%;vertical-align:middle}
.mdw-context-menu{position:fixed;z-index:1400;width:214px;padding:5px;border:1px solid var(--theme-line2,#556079);border-radius:11px;background:var(--theme-surface2,#222837);color:var(--theme-text,#e6e9f0);box-shadow:0 12px 40px #0005}.mdw-context-menu>button{display:block;width:100%;text-align:left;padding:10px 12px;border:0;border-radius:7px;background:transparent;color:inherit;font:13px ui-sans-serif,system-ui,sans-serif;cursor:pointer}.mdw-context-menu>button:disabled{opacity:.4;cursor:default}.mdw-context-menu>button:not(:disabled):hover,.mdw-context-menu>button:focus-visible{background:var(--theme-accent-soft,#818cf81a);outline:none}
.mdw-ui-toast{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);z-index:1300;max-width:calc(100vw - 32px);padding:12px 20px;border:1px solid var(--theme-line,#323947);border-radius:12px;background:var(--theme-surface2,#222837);color:var(--theme-text,#e6e9f0);box-shadow:0 12px 40px #0005;font-size:13px}
.mdw-file-preview-body{padding:22px 24px;max-height:65dvh;overflow:auto;color:var(--theme-text,#e6e9f0);font-size:13px}.mdw-file-preview-body>img{display:block;max-width:100%;max-height:58dvh;object-fit:contain;margin:auto;border-radius:10px}.mdw-file-preview-body>iframe{width:100%;height:58dvh;border:0;border-radius:10px;background:var(--theme-bg2,#10141b)}.mdw-file-preview-body pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:15px;border-radius:10px;background:var(--theme-bg2,#10141b);line-height:1.6}.mdw-file-preview-body article{padding:14px 18px;border:1px solid var(--theme-line,#323947);border-radius:10px;line-height:1.7;margin:0 0 12px}.mdw-file-preview-body ul{list-style:none;padding:0;margin:0}.mdw-file-preview-body li{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid var(--theme-line,#323947)}.mdw-file-preview-body li>span{overflow-wrap:anywhere}.mdw-file-preview-body li>small{white-space:nowrap;color:var(--theme-muted,#a2adbe)}.mdw-file-table{overflow:auto}.mdw-file-table table{border-collapse:collapse;width:100%;font-size:12px}.mdw-file-table td{border:1px solid var(--theme-line,#323947);padding:9px 12px;white-space:pre-wrap}.mdw-file-preview .mdw-ui-actions>a{display:flex;align-items:center;gap:8px;text-decoration:none}
.mdw-select{position:relative;display:inline-block;min-width:0;width:100%;vertical-align:middle;text-align:left;font-size:13px}.mdw-native-shadow{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;padding:0!important;clip-path:inset(50%);overflow:hidden}
.mdw-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:38px;width:100%;border:1px solid var(--theme-line,#323947);border-radius:8px;padding:9px 11px;background:var(--theme-bg2,#10141b);color:var(--theme-text,#e6e9f0);font:inherit;cursor:pointer;text-align:left}.mdw-select-trigger>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mdw-select-trigger>svg{flex-shrink:0}.mdw-select-trigger:focus-visible{outline:2px solid var(--theme-accent,#818cf8);outline-offset:2px}.mdw-select-trigger:disabled{opacity:.55;cursor:default}
.mdw-select-options{position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:30;max-height:220px;overflow:auto;padding:5px;border:1px solid var(--theme-line2,#556079);border-radius:10px;background:var(--theme-surface2,#222837);color:var(--theme-text,#e6e9f0);box-shadow:0 10px 35px #0005}.mdw-select-options.above{top:auto;bottom:calc(100% + 5px)}.mdw-select-options [role=option]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 9px;font-size:13px;border-radius:6px;cursor:pointer;overflow-wrap:anywhere}.mdw-select-options [role=option].active{background:var(--theme-accent-soft,#818cf81a)}.mdw-select-options [aria-disabled=true]{opacity:.45;cursor:default}.mdw-select-options [role=option]>svg{flex-shrink:0;color:var(--theme-accent-text,#a5b4fc)}.mdw-control-error{display:block;font-size:12px;color:var(--theme-danger,#ef8585);padding:4px 0}
.mdw-datetime-field{display:flex;gap:8px;min-width:0;align-items:center}.mdw-date-trigger{flex:1;min-width:0;display:flex;gap:9px;align-items:center;min-height:39px;border:1px solid var(--theme-line,#323947);border-radius:8px;padding:9px 11px;background:var(--theme-bg2,#10141b);color:var(--theme-text,#e6e9f0);font:inherit;cursor:pointer}.mdw-date-trigger span{font-size:12px;white-space:nowrap}.mdw-date-trigger svg{flex-shrink:0}.mdw-datetime-field>input{width:90px;flex:0 0 90px;font:inherit;padding:10px;border:1px solid var(--theme-line,#323947);border-radius:8px;background:var(--theme-bg2,#10141b);color:var(--theme-text,#e6e9f0)}.mdw-date-trigger:focus-visible,.mdw-datetime-field>input:focus-visible{outline:2px solid var(--theme-accent,#818cf8);outline-offset:2px}.mdw-date-header{display:flex;align-items:center;justify-content:space-between;padding:16px 22px 8px;font-size:14px}.mdw-date-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;padding:8px 24px}.mdw-date-grid>small{text-align:center;font-size:10px;padding:6px 0;color:var(--theme-muted,#a2adbe)}.mdw-date-grid>button{aspect-ratio:1;border:0;border-radius:8px;background:transparent;color:var(--theme-text,#e6e9f0);font-size:13px}.mdw-date-grid>button:hover{background:var(--theme-accent-soft,#818cf81a)}.mdw-date-grid>button.outside{color:var(--theme-muted,#a2adbe);opacity:.65}.mdw-date-grid>button.selected{background:var(--theme-accent,#818cf8);color:var(--theme-on-accent,#101424)}.note-rich-toolbar .mdw-select{width:auto;min-width:140px;max-width:230px}.note-rich-toolbar .mdw-select-trigger{min-height:31px;font-size:11px;padding:6px 9px}.calendar-editor{width:100%}
