.mw{--mw-ink:#203540;--mw-muted:#5c707b;--mw-bg:#edf3f5;--mw-surface:#fcfdfd;--mw-line:#d3dfe4;--mw-accent:#235b6d;--mw-on:#fff;container:monthly/inline-size;max-width:560px;margin:auto;padding:20px;background:var(--mw-surface);border:1px solid var(--mw-line);border-radius:14px;color:var(--mw-ink);font:14px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic",sans-serif;letter-spacing:-.015em}
:root[data-theme=dark] .mw{--mw-ink:#eff5f7;--mw-muted:#b0c2cc;--mw-bg:#203640;--mw-surface:#172631;--mw-line:#334954;--mw-accent:#a5dbe5;--mw-on:#14323a}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .mw{--mw-ink:#eff5f7;--mw-muted:#b0c2cc;--mw-bg:#203640;--mw-surface:#172631;--mw-line:#334954;--mw-accent:#a5dbe5;--mw-on:#14323a}}
.mw *{box-sizing:border-box}.mw [hidden]{display:none!important}.mw h3,.mw p{margin:0}.mw button,.mw input,.mw select,.mw textarea{font:inherit;color:var(--mw-ink);letter-spacing:inherit;min-width:0;box-shadow:none;line-height:1.3}
.mw button{cursor:pointer;background:var(--mw-surface);border:1px solid var(--mw-line);border-radius:6px;padding:7px 10px;width:auto;font-size:12px;font-weight:500;min-height:32px}.mw button:hover{background:var(--mw-bg)}.mw button:disabled{opacity:.5;cursor:not-allowed}.mw input,.mw select,.mw textarea{background:var(--mw-surface);border:1px solid var(--mw-line);border-radius:6px;padding:8px;width:100%;height:40px;min-height:0}.mw textarea{height:90px;resize:vertical}.mw :is(button,input,select,summary,textarea):focus-visible{outline:2px solid var(--mw-accent);outline-offset:2px}.mw input{font-variant-numeric:tabular-nums}.mw small{font-size:11px;color:var(--mw-muted);line-height:1.3}.mw label{font-size:12px;display:block;color:var(--mw-muted)}
.mw-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.mw-top h3{font-size:18px;font-weight:650}.mw-top button,.mw .mw-secondary-link{border:0;color:var(--mw-muted);background:var(--mw-surface);font-size:12px}.mw-command{display:flex;justify-content:space-between;align-items:center}.mw-command label>span{display:flex;align-items:baseline;gap:7px;margin-top:3px;font-size:16px;color:var(--mw-ink)}.mw #mw-budget{border:0;border-radius:0;padding:0;background:transparent;font-size:30px;line-height:1.2;font-weight:650;height:38px;width:7.5ch;max-width:65vw;text-align:left;letter-spacing:-.04em}.mw-month-label{align-self:end;padding-bottom:4px}.mw #mw-version{display:block;text-align:right;font-size:10px}
.mw .mw-cash-link{display:flex;width:100%;justify-content:space-between;gap:6px;background:var(--mw-bg);border:0;margin:13px 0 20px;padding:10px;font-size:12px;color:var(--mw-muted)}.mw-cash-link b{font-weight:500;color:var(--mw-ink)}.mw-list-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}.mw-list-head>b{font-size:13px;font-weight:600}.mw-list-head button{border:0;font-size:11px;color:var(--mw-muted);padding:4px 0 4px 6px;min-height:28px}
.mw-row-main{display:grid;grid-template-columns:minmax(0,1fr) 55px 105px;gap:8px;align-items:center;height:48px;border-bottom:1px solid var(--mw-line);font-variant-numeric:tabular-nums}.mw .mw-stock{display:block;border:0;text-align:left;padding:4px 2px;min-width:0;height:44px;border-radius:4px;background:transparent}.mw-stock b,.mw-stock small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mw-stock b{font-size:13px;font-weight:600;line-height:1.4}.mw-stock small{margin-top:2px}.mw .mw-weight{display:flex;align-items:center;justify-content:flex-end;gap:1px;margin:0;font-size:12px;color:var(--mw-muted)}.mw .mw-weight input{width:40px;height:32px;min-height:0;border:0;border-bottom:1px solid var(--mw-line);border-radius:0;padding:3px 1px;text-align:right;font-size:14px;background:transparent;appearance:textfield}.mw-weight input::-webkit-inner-spin-button,.mw-weight input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.mw-result{text-align:right;min-width:0}.mw-result b,.mw-result small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mw-result b{font-size:13px;font-weight:600}.mw-result small{margin-top:2px;font-size:11px}.mw .mw-add{display:block;width:100%;border:0;color:var(--mw-muted);margin:5px 0 12px;padding:9px 0;font-size:12px}
.mw-total-line{display:flex;justify-content:space-between;align-items:baseline;gap:8px;border-top:1px solid var(--mw-line);padding:13px 0 10px;font-size:12px}.mw-total-line b{font-size:16px;font-weight:650}.mw-total-line>small{text-align:right}.mw-actions{display:flex;gap:8px}.mw .mw-actions button,.mw [data-mw=save],.mw [data-mw=apply],.mw [data-mw-done]{background:var(--mw-accent);color:var(--mw-on);border-color:var(--mw-accent)}.mw .mw-actions button:hover,.mw [data-mw=save]:hover,.mw [data-mw=apply]:hover,.mw [data-mw-done]:hover{background:var(--mw-accent);color:var(--mw-on);filter:brightness(.97)}.mw .mw-actions button{width:100%;min-height:43px;font-size:14px;font-weight:600;border-radius:8px}.mw #mw-total,.mw #mw-status{font-size:11px;color:var(--mw-muted);margin-top:8px;white-space:pre-wrap;line-height:1.45}.mw #mw-total:empty,.mw #mw-status:empty{display:none}.mw .mw-secondary-link{display:block;margin:5px auto 0;padding:4px}.mw #mw-total[data-valid=false]{color:#b3483e}
.mw .mw-back{display:none;border:0;padding:4px 0;margin:0 0 15px;color:var(--mw-muted);background:transparent}.mw[data-editing=true] .mw-back,.mw[data-panel]:not([data-panel=""]) .mw-back{display:block}.mw[data-panel]:not([data-panel=""]) .mw-plan-only,.mw[data-panel]:not([data-panel=""]) .mw-top,.mw[data-panel]:not([data-panel=""]) .mw-sheet{display:none}.mw-row-details{padding:16px 0 0}.mw-row-details>label{margin:0 0 14px}.mw-row-details label>input,.mw-row-details label>select{display:block;margin-top:6px}.mw-row-details label>small{display:block;margin-top:4px}.mw-row-details .mw-price{display:flex;justify-content:space-between;gap:12px;font-size:13px;padding:12px 0;border-block:1px solid var(--mw-line);margin:16px 0}.mw-price>span{color:var(--mw-muted)}.mw .mw-type select{width:100px;height:32px;font-size:12px}.mw-limit-line{display:flex;align-items:center;gap:10px;margin-bottom:12px}.mw-limit-line input{width:170px;text-align:right;font-size:18px}.mw .mw-link{border:0;background:transparent;color:var(--mw-accent);font-size:12px;padding:5px}.mw-edit-actions{display:flex;align-items:center;justify-content:space-between;margin-top:18px}.mw [data-mw-remove]{border:0;color:#b3483e;background:transparent}.mw [data-mw-done]{min-width:140px;min-height:40px}.mw summary{cursor:pointer;font-size:12px;color:var(--mw-muted);padding:8px 0}.mw-row-math p{font-size:12px;margin:5px 0;line-height:1.5}
.mw-hits:empty{display:none}.mw-hits{border:1px solid var(--mw-line);border-radius:7px;overflow:auto;max-height:230px;margin-top:7px;background:var(--mw-surface)}.mw .mw-hits button{border:0;border-radius:0;border-bottom:1px solid var(--mw-line);display:flex;flex-direction:column;text-align:left;width:100%;min-height:44px;gap:3px;padding:7px 9px;white-space:normal}.mw .mw-hits small{display:block}.mw-hits p{font-size:12px;padding:10px}
.mw [data-mw-panel]>h3{font-size:18px;margin-bottom:20px}.mw [data-mw-panel]>p{font-size:12px;line-height:1.6;color:var(--mw-muted);margin:12px 0}.mw-reuse{display:flex;gap:8px;margin:16px 0}.mw-reuse select{flex:1}.mw-reuse button{white-space:nowrap}.mw [data-mw-panel=cash]>label{margin-top:20px}.mw [data-mw-panel=cash] select{margin-top:7px}.mw-account-head,#mw-accounts>div{display:grid;grid-template-columns:minmax(90px,1.4fr) 1fr 1fr 1fr;gap:7px;align-items:center;border-bottom:1px solid var(--mw-line);padding:11px 0;font-size:11px;text-align:right;font-variant-numeric:tabular-nums}.mw-account-head{font-size:10px;color:var(--mw-muted);padding:7px 0}.mw-account-head>:first-child,#mw-accounts b{text-align:left;font-weight:500}#mw-accounts p{font-size:12px;padding:10px 0}.mw-more>label{display:block;margin:10px 0}.mw-more textarea{display:block;margin-top:6px}.mw-tools{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}#mw-remainder-accounts>div{border-bottom:1px solid var(--mw-line);font-size:12px;padding:9px 0}#mw-remainder-accounts span{display:block;color:var(--mw-muted);margin-top:4px}
.mw #mw-dialog{width:min(540px,calc(100vw - 24px));max-height:90dvh;overflow:auto;border:1px solid var(--mw-line);border-radius:12px;padding:20px;background:var(--mw-surface);color:var(--mw-ink)}.mw #mw-dialog::backdrop{background:#17232b88}.mw #mw-dialog header{position:static;background:transparent;box-shadow:none;display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 12px;padding:0}.mw #mw-dialog h3{font-size:18px}.mw #mw-dialog header button{border:0;font-size:22px;padding:0 6px}.mw #mw-dialog textarea{height:160px;margin:8px 0}.mw #mw-dialog label{display:block;margin-top:10px}.mw #mw-dialog p{font-size:12px;line-height:1.6;margin:12px 0}.mw-confirm-row,.mw-diff-row{padding:11px 0;border-bottom:1px solid var(--mw-line);font-size:12px}.mw-confirm-row b,.mw-confirm-row span{display:block}.mw-confirm-row span{margin-top:4px}.mw-diff-row b{display:block;margin-top:5px}.mw-review-actions{display:flex;gap:8px;justify-content:space-between;margin-top:20px}#mw-dialog-status{white-space:pre-wrap}
@container monthly (max-width:350px){.mw-row-main{grid-template-columns:minmax(0,1fr) 45px 85px;gap:6px}.mw-result b{font-size:12px}.mw-stock b{font-size:12px}.mw .mw-weight input{width:33px}.mw-account-head,#mw-accounts>div{grid-template-columns:minmax(85px,1fr) 1fr 1fr}.mw-account-head>:nth-child(3),#mw-accounts>div>:nth-child(3){display:none}.mw-total-line{flex-wrap:wrap}}
@media(max-width:440px){.mw{padding:16px 12px;border-radius:10px}.mw-month-label{font-size:10px}}
@media(pointer:coarse){.mw .mw-weight input{font-size:16px;height:40px}.mw-row-details input,.mw-row-details select{font-size:16px}.mw .mw-cash-link{min-height:44px}}

/* Compact account-first planner. Input and quote updates keep their existing DOM. */
.mw{max-width:900px;padding:18px;border-radius:18px;font-family:"Mori Pretendard",Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic",sans-serif;letter-spacing:-.015em;--mw-line:#d9e2e7;--mw-bg:#f0f4f6;--mw-surface:#fff;--mw-muted:#536875}
:root[data-theme=dark] .mw{--mw-line:#354b59;--mw-bg:#243945;--mw-surface:#1b2d38;--mw-muted:#b7c9d3}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .mw{--mw-line:#354b59;--mw-bg:#243945;--mw-surface:#1b2d38;--mw-muted:#b7c9d3}}
.mw button,.mw input,.mw select{border-radius:8px;border-color:var(--mw-line)}
.mw input,.mw select{font-size:13px;height:34px;padding:5px 7px}
.mw-top{margin-bottom:14px}.mw-top h3{font-size:16px;letter-spacing:-.025em}.mw-month-label{align-self:center;padding:0;font-size:11px}.mw #mw-version{font-size:10px;margin-top:2px}
.mw-command{gap:8px;flex-wrap:wrap}.mw-command label{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--mw-ink)}.mw-command label>span{align-items:center;gap:4px;margin:0;font-size:12px}
.mw #mw-budget{height:36px;min-width:72px;width:7ch;max-width:140px;border:1px solid var(--mw-line);border-radius:8px;background:var(--mw-bg);padding:4px 7px;font-size:18px;text-align:right;letter-spacing:-.025em}
.mw-command>button{font-size:11px;padding:6px 9px}
.mw .mw-cash-link{margin:12px 0 4px;min-height:28px;padding:0;background:transparent;border:0;text-align:left;font-size:11px}.mw-cash-link b{font-size:11px;text-align:right}.mw-cash-strip{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 12px}.mw-cash-strip:empty{display:none}.mw-cash-strip>div{flex:1 1 88px;min-width:0;padding:8px 10px;background:var(--mw-bg);border-radius:10px}.mw-cash-strip span,.mw-cash-strip b{display:block;overflow-wrap:anywhere;font-size:11px}.mw-cash-strip span{color:var(--mw-muted)}.mw-cash-strip b{font-size:12px;margin-top:2px;font-weight:600}
.mw-table-scroll{overflow:visible;border:0}.mw-table{min-width:0}.mw-columns{display:grid;grid-template-columns:112px minmax(0,1fr) 62px;gap:8px;font-size:11px;color:var(--mw-muted);padding:0 8px 5px}.mw-columns>span:last-child{text-align:right;padding-right:6px}
.mw-row{background:var(--mw-surface);border:1px solid var(--mw-line);border-radius:12px;margin-bottom:7px;transition:border-color .15s}.mw-row:focus-within{border-color:var(--mw-accent)}
.mw-row-main{display:grid;grid-template-columns:112px minmax(0,1fr) 62px;grid-template-areas:"account symbol weight" "type result result";gap:2px 8px;height:auto;min-height:72px;align-items:center;border:0;padding:5px 7px 3px}
.mw-cell{min-width:0;border:0;padding:0}.mw-cell-account{grid-area:account;position:static}.mw-cell-symbol{grid-area:symbol}.mw-cell-weight{grid-area:weight}.mw .mw-cell input,.mw .mw-cell select{background:var(--mw-bg);border:1px solid transparent;height:34px;min-height:0;font-size:13px}.mw .mw-cell input:hover,.mw .mw-cell select:hover{border-color:var(--mw-line)}.mw .mw-cell input:focus,.mw .mw-cell select:focus{background:var(--mw-surface);border-color:var(--mw-accent)}
.mw .mw-weight{display:flex;gap:3px;align-items:center;width:100%;font-size:11px}.mw .mw-weight input{width:100%;height:34px;padding:4px 5px;border-radius:8px;font-size:13px;font-weight:600}
.mw-cell-type{grid-area:type;display:flex;gap:2px;align-items:center}.mw .mw-cell-type select{width:70px;min-width:0;font-size:11px;background:transparent;padding:2px 0;height:26px;color:var(--mw-muted);border:0}.mw .mw-cell-type button{font-size:10px;min-height:26px;height:26px;min-width:28px;padding:2px;border:0;background:transparent;color:var(--mw-accent)}
.mw-result{grid-area:result;display:flex;flex-direction:row;gap:4px;flex-wrap:wrap;justify-content:flex-end;align-items:baseline;text-align:right;line-height:1.4}.mw-result small{order:0;font-size:11px;line-height:1.4;margin:0;overflow:visible;white-space:normal;overflow-wrap:anywhere}.mw-result b{order:1;font-size:12px;line-height:1.4;overflow:visible;white-space:normal;overflow-wrap:anywhere}.mw-result b:before{content:"= ";font-weight:400;color:var(--mw-muted)}
.mw-addbar{display:flex;align-items:center;justify-content:space-between;gap:6px;padding-top:3px}.mw .mw-add{width:auto;margin:0;padding:7px 9px;color:var(--mw-accent);background:var(--mw-bg);border:0;font-size:11px}.mw-addbar>[data-mw=refresh]{font-size:11px;padding:7px 9px}.mw #mw-total{font-size:10px;margin:0;text-align:center;flex:1;line-height:1.35}
.mw-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--mw-line);margin-top:13px;padding-top:12px}.mw-total-line{display:block;padding:0;border:0;font-size:12px}.mw-total-line b{font-size:16px}.mw-total-line small{display:block;text-align:left;font-size:11px;margin-top:4px}.mw .mw-actions button{width:auto;min-height:38px;font-size:12px;padding:8px 12px;border-radius:10px}.mw .mw-secondary-link{margin:9px 0 0 auto;font-size:11px}
.mw[data-panel]:not([data-panel=""]) .mw-plan-only,.mw[data-panel]:not([data-panel=""]) .mw-top,.mw[data-panel]:not([data-panel=""]) .mw-sheet{display:revert}.mw[data-panel]:not([data-panel=""]) .mw-command,.mw[data-panel]:not([data-panel=""]) .mw-top,.mw[data-panel]:not([data-panel=""]) .mw-cash-link,.mw[data-panel]:not([data-panel=""]) .mw-cash-strip,.mw[data-panel]:not([data-panel=""]) .mw-addbar{display:flex}
.mw[data-editing=true] .mw-back{display:none}.mw[data-panel]:not([data-panel=""]) .mw-back{display:block;margin:10px 0;font-size:11px}.mw [data-mw-panel]{margin-top:12px;padding:12px;background:var(--mw-bg);border-radius:10px}.mw [data-mw-panel]>h3{font-size:14px;margin-bottom:10px}
.mw-row-details{padding:10px;background:var(--mw-bg);border-top:1px solid var(--mw-line);border-radius:0 0 11px 11px}.mw-detail-title>b,.mw-detail-title>small{display:block}.mw-detail-title>b{font-size:13px}.mw-row-details .mw-price{margin:6px 0;padding:6px 0;font-size:12px}.mw-limit-line{display:flex;gap:6px;align-items:center;margin:8px 0}.mw-limit-line input{height:34px;max-width:180px}.mw-edit-actions{display:flex;justify-content:space-between;margin-top:8px}.mw summary{font-size:12px;padding:6px 0;cursor:pointer}.mw-hits{margin:0;border:0;border-top:1px solid var(--mw-line);border-radius:0 0 11px 11px}.mw #mw-dialog h3{font-size:16px}
@container monthly (max-width:440px){.mw-columns,.mw-row-main{grid-template-columns:104px minmax(0,1fr) 55px;column-gap:5px}.mw-command>button{max-width:128px}.mw-result small{font-size:10px}.mw-result b{font-size:11px}.mw-total-line b{font-size:14px}.mw #mw-total{max-width:70px}.mw .mw-cell input,.mw .mw-cell select{font-size:12px}.mw .mw-cell-type select{font-size:11px}.mw .mw-weight input{width:100%}.mw-columns{padding-inline:8px}}
@media(max-width:440px){.mw{padding:12px 10px;border-radius:14px}.mw-top h3{font-size:15px}}
@media(pointer:coarse){.mw .mw-cell input,.mw .mw-cell select{height:38px}.mw .mw-cell input:focus,.mw .mw-cell select:focus{font-size:16px}.mw .mw-cell-type select,.mw .mw-cell-type button{height:30px;min-height:30px}.mw .mw-cell-type select:focus{font-size:13px}.mw-row-main{min-height:78px}.mw .mw-cell-type button{position:relative}.mw .mw-cell-type button:after{content:"";position:absolute;inset:-4px -2px}.mw-command>button,.mw .mw-addbar button,.mw .mw-actions button{min-height:40px}.mw .mw-cash-link{min-height:32px}.mw .mw-weight input{width:100%}}

.mw-result[data-quoted=false] b,.mw-result[data-quoted=false] small{display:none}.mw-result[data-quoted=false]:after{content:"현재가 반영 필요";font-size:11px;color:var(--mw-muted)}

/* Separate money, account allocation, and editing by explicit sections—not grey fills. */
.mw{padding:0;background:transparent;border:0!important;--mw-section:#fff;--mw-section-border:#bacbd6;--mw-section-head:#183f56;--mw-section-on:#fff;--mw-field:#fff;--mw-origin-bg:#fff4d5;--mw-origin-ink:#614600}
:root[data-theme=dark] .mw{--mw-section:#172d3c;--mw-section-border:#527183;--mw-section-head:#abd5e7;--mw-section-on:#132c3b;--mw-field:#102431;--mw-origin-bg:#40351e;--mw-origin-ink:#ffe2a0}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .mw{--mw-section:#172d3c;--mw-section-border:#527183;--mw-section-head:#abd5e7;--mw-section-on:#132c3b;--mw-field:#102431;--mw-origin-bg:#40351e;--mw-origin-ink:#ffe2a0}}
.mw .mw-top{padding:2px 2px 0;margin-bottom:10px}.mw .mw-top h3{font-size:16px}.mw .mw-month-label{font-size:11px}.mw #mw-origin{padding:8px 10px;margin:0 0 14px;font-size:12px;border-radius:7px;background:var(--mw-origin-bg);color:var(--mw-origin-ink)}
.mw .mw-block{background:var(--mw-section);border:1px solid var(--mw-section-border);border-radius:12px;margin:0 0 16px;padding:12px;min-width:0}.mw .mw-block-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid var(--mw-section-border)}.mw .mw-block-head h4{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:650;margin:0;color:var(--mw-ink)}.mw .mw-block-head h4>span{font-size:10px;font-weight:600;background:var(--mw-section-head);color:var(--mw-section-on);border-radius:5px;padding:3px 5px}.mw .mw-block-head button{font-size:11px;padding:5px 8px;min-height:30px;background:var(--mw-section);border-color:var(--mw-section-border)}
.mw .mw-funding-block{border-top:3px solid var(--mw-accent)}.mw .mw-command{display:block}.mw .mw-command label{display:flex;align-items:center;justify-content:space-between;font-size:12px}.mw .mw-command>small{display:block;margin-top:8px;font-size:11px}.mw #mw-budget{font-size:21px;height:38px;background:var(--mw-field);border-color:var(--mw-section-border);min-width:90px}.mw .mw-command label>span{font-size:12px}
.mw .mw-summary-block .mw-cash-link{margin:0 0 8px;padding:0;min-height:24px;font-size:11px}.mw .mw-summary-table{width:100%;table-layout:fixed;border-collapse:collapse;font-variant-numeric:tabular-nums;margin:0}.mw .mw-summary-table th,.mw .mw-summary-table td{padding:8px 5px;vertical-align:middle;overflow-wrap:anywhere;text-align:right;border-bottom:1px solid var(--mw-section-border);font-size:11px;line-height:1.4}.mw .mw-summary-table thead th{background:var(--mw-section-head);color:var(--mw-section-on);font-size:10px;font-weight:500;padding:7px 5px}.mw .mw-summary-table th:first-child{width:35%;text-align:left}.mw .mw-summary-table th:nth-child(2){width:15%}.mw .mw-summary-table th:nth-child(3),.mw .mw-summary-table th:nth-child(4){width:25%}.mw .mw-summary-table tbody th{font-weight:600;font-size:12px}.mw .mw-summary-table small{display:block;font-weight:400;font-size:10px;margin-top:3px;color:var(--mw-muted)}.mw .mw-summary-note{font-size:10px;color:var(--mw-muted);margin-top:8px;line-height:1.5}
.mw .mw-editor-block .mw-block-head{margin-bottom:8px}.mw .mw-columns,.mw .mw-row-main{grid-template-columns:98px minmax(0,1fr) 50px;column-gap:5px}.mw .mw-columns{font-size:10px;padding:0 5px 5px}.mw .mw-row{border-color:var(--mw-section-border);border-radius:7px;margin-bottom:5px}.mw .mw-row-main{min-height:64px;padding:4px 4px 2px}.mw .mw-cell input,.mw .mw-cell select{background:var(--mw-field);border:1px solid var(--mw-line);border-radius:5px;font-size:12px;height:30px;padding:3px 4px}.mw .mw-weight input{width:100%;font-size:12px;font-weight:500}.mw .mw-cell-type select{width:64px;font-size:10px;height:24px;border:0;background:transparent}.mw .mw-cell-type button{font-size:10px;min-height:24px;height:24px;padding:1px}.mw .mw-result b{font-size:11px}.mw .mw-result small{font-size:10px}.mw .mw-addbar{padding-top:4px}.mw .mw-addbar .mw-add{background:var(--mw-section);border:1px solid var(--mw-accent)}.mw .mw-footer{margin-top:10px;padding-top:10px}.mw .mw-total-line b{font-size:14px}
.mw #mw-history-dialog{width:min(540px,calc(100vw - 24px));max-height:88dvh;overflow:auto;background:var(--mw-section);color:var(--mw-ink);border:1px solid var(--mw-section-border);border-radius:14px;padding:16px}.mw #mw-history-dialog::backdrop{background:#10243288}.mw #mw-history-dialog header{position:sticky;top:-16px;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:12px 0;background:var(--mw-section);box-shadow:none;margin:0 0 12px;border-bottom:1px solid var(--mw-section-border)}.mw #mw-history-dialog h3{font-size:15px;margin:0 0 5px}.mw #mw-history-dialog header button{white-space:nowrap;min-height:36px;font-size:12px;border-color:var(--mw-section-border);padding:6px 8px;color:var(--mw-ink)}.mw #mw-history-dialog p{font-size:12px;line-height:1.6;margin:9px 0;color:var(--mw-muted)}.mw #mw-history-dialog .mw-reuse{flex-wrap:wrap;margin:12px 0;gap:7px}.mw #mw-history-dialog .mw-reuse select{min-width:120px}.mw #mw-history-dialog [data-mw=month]{background:var(--mw-accent);color:var(--mw-on);border-color:var(--mw-accent)}.mw #mw-history-preview{padding:10px;border:1px solid var(--mw-section-border);border-radius:8px;margin-bottom:12px}.mw #mw-history-preview h4{font-size:13px;margin:0}.mw #mw-history-preview>div{display:flex;flex-direction:column;gap:3px;border-top:1px solid var(--mw-line);padding:6px 0;font-size:11px}.mw .mw-history-return{display:block;width:100%;margin-top:12px;font-size:12px;min-height:38px}.mw #mw-history-status{color:var(--mw-origin-ink)}
@container monthly (max-width:360px){.mw .mw-block{padding:10px}.mw .mw-columns,.mw .mw-row-main{grid-template-columns:93px minmax(0,1fr) 47px;column-gap:4px}.mw .mw-cell input,.mw .mw-cell select{font-size:11px}.mw .mw-cell-type select{font-size:10px}.mw .mw-summary-table th,.mw .mw-summary-table td{padding-inline:3px}.mw .mw-top h3{font-size:15px}}
@media(pointer:coarse){.mw .mw-row-main{min-height:70px}.mw .mw-cell input,.mw .mw-cell select{height:34px}.mw .mw-cell input:focus,.mw .mw-cell select:focus{font-size:16px}.mw .mw-cell-type select,.mw .mw-cell-type button{height:26px;min-height:26px}.mw .mw-block-head button,.mw #mw-history-dialog button{min-height:40px}.mw .mw-cell-type select:focus{font-size:12px}}

.mw .mw-presets{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end}.mw .mw-presets button{font-size:11px;padding:5px 8px}.mw .mw-feedback{font-size:11px;line-height:1.5;padding:7px 9px;border-left:3px solid var(--mw-accent);background:var(--mw-bg);color:var(--mw-ink);white-space:pre-wrap;margin:0 0 8px}.mw .mw-strategy-row{display:grid;grid-template-columns:1fr auto;gap:5px 10px;padding:10px 0;border-bottom:1px solid var(--mw-line);font-size:12px}.mw .mw-strategy-row select{max-width:160px}.mw .mw-strategy-row small{grid-column:1/-1}.mw .mw-strategy-row input{width:60px} .mw .mw-strategy-excluded{padding:9px;background:var(--mw-bg);font-size:12px}

/* One type scale for labels and controls, including native dialog content. */
.mw,.mw #mw-dialog,.mw #mw-history-dialog{font-family:"Mori Pretendard",Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:13px;line-height:1.5}
.mw #mw-dialog h3,.mw #mw-history-dialog h3{font-size:16px}
.mw #mw-dialog label,.mw #mw-dialog input,.mw #mw-dialog select,.mw #mw-dialog button,.mw #mw-dialog .mw-strategy-row{font-family:inherit;font-size:13px;line-height:1.5}
.mw #mw-dialog .mw-strategy-row label{display:flex;align-items:center;gap:4px;margin:0;white-space:nowrap}
.mw #mw-dialog .mw-strategy-row label[hidden]{display:none}
.mw #mw-dialog .mw-strategy-row input{width:54px;padding:5px 6px;min-height:32px;height:32px}
.mw #mw-dialog small,.mw #mw-dialog p{font-size:12px;line-height:1.5}
.mw #mw-dialog header button{font-size:20px}

/* Override the app-wide ID selector as well as coarse-pointer focus enlargement. */
.mw .mw-cell :is(input,select,button),#app .mw .mw-cell :is(input,select,button),
.mw .mw-cell :is(input,select):focus,#app .mw .mw-cell :is(input,select):focus{
 font-family:"Mori Pretendard",Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 font-size:12px;font-weight:500;line-height:1.4;letter-spacing:-.015em;min-width:0;
}
.mw .mw-columns,.mw .mw-row-main{grid-template-columns:90px minmax(0,1fr) 64px}
.mw .mw-weight,#app .mw .mw-weight{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px;font-size:12px}
.mw .mw-cell-weight input{width:100%;min-width:0;text-align:right;padding-inline:3px}

.mw .mw-next-step{border-left:3px solid var(--mw-accent);padding:8px 10px;margin:0 0 12px;background:var(--mw-section);border-radius:4px}
.mw .mw-next-step b{font-size:12px}.mw .mw-next-step p{font-size:11px;line-height:1.5;color:var(--mw-muted);margin:3px 0 0}
.mw .mw-advice-entry{width:100%;font-size:12px;margin-top:6px;min-height:34px;color:var(--mw-accent);background:var(--mw-section)}
.mw .mw-advice-actions{display:flex;gap:6px;flex-wrap:wrap}

/* Footer: totals own a full row; actions never compress into vertical text. */
.mw .mw-footer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:stretch}.mw .mw-footer .mw-total-line{grid-column:1/-1;display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}.mw .mw-footer .mw-total-line>span,.mw .mw-footer .mw-total-line>small{white-space:nowrap;margin:0}.mw .mw-footer .mw-actions{min-width:0;display:flex;align-self:start;align-items:flex-start}.mw .mw-footer .mw-actions button,.mw .mw-footer .mw-advice-entry{width:100%;min-width:0;min-height:40px;margin:0;padding:8px 6px;font-size:12px;line-height:1.4;white-space:nowrap}.mw .mw-footer .mw-actions button[hidden]{display:none}

.mw [data-isa-settings]{border:1px solid var(--mw-line);border-radius:8px;padding:10px;margin:10px 0}.mw [data-isa-settings] label{display:grid;gap:4px;margin:8px 0}.mw [data-isa-settings] input,.mw [data-isa-settings] select{width:100%;min-width:0}.mw #mw-isa-result:empty{display:none}.mw #mw-isa-result p{margin:5px 0}.mw .mw-summary-block .mw-block-head{flex-wrap:wrap}

/* Quick preparation and unsupported gold stay legible in the same holdings section. */
.mw-manual-row{display:grid;grid-template-columns:1fr auto;gap:5px 10px;padding:10px 12px;border:1px solid var(--border,#cad3d8);border-radius:10px;margin-top:8px;font-size:12px;background:var(--card,#fff)}
.mw-manual-row b,.mw-manual-row strong{font-size:12px}.mw-manual-row small{grid-column:1/-1;font-size:11px}.mw-quick-note{display:block;font-size:11px;line-height:1.5;margin:8px 0}

.mw .mw-footer #mw-status{grid-column:1/-1;margin:0;padding:8px 10px;border:1px solid var(--mw-line);border-radius:6px;font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.mw .mw-footer #mw-status:empty{display:none}.mw .mw-footer #mw-status[data-error="true"]{border-color:#b54735;color:#9a301f;background:#fff4ef}

#mw-prepare-dialog{width:min(430px,calc(100vw - 28px));padding:18px;border:1px solid #c4d3d5;border-radius:14px;background:#fff;color:#193b43}#mw-prepare-dialog::backdrop{background:#162b3c77}#mw-prepare-dialog header{display:flex;justify-content:space-between;align-items:center;gap:8px}#mw-prepare-dialog h3{font-size:16px;margin:0}#mw-prepare-dialog button{font-size:12px}#mw-prepare-progress{padding-left:20px;font-size:12px;line-height:2}#mw-prepare-status{font-size:13px;line-height:1.6;white-space:pre-wrap}#mw-prepare-choices{display:grid;gap:8px;margin-top:12px}#mw-prepare-choices button{padding:12px;text-align:left;border:1px solid #b8c9cd;background:#f3f8f8;border-radius:8px}#mw-prepare-choices button:disabled{opacity:.5}#mw-prepare-choices small,#mw-prepare-elapsed{font-size:11px;line-height:1.5}#mw-prepare-progress[hidden]{display:none}

/* One scale for the monthly editor, including its dialogs. Labels 11, content 12,
   section titles 13, month title 15; numeric inputs do not become headings. */
#app .mw,#app .mw button,#app .mw input,#app .mw select,#app .mw textarea,
#app .mw dialog,#app .mw dialog button,#app .mw dialog input,#app .mw dialog select{
  font-family:"Mori Pretendard",Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:12px;line-height:1.45;letter-spacing:-.01em;
}
#app .mw .mw-top h3{font-size:15px}
#app .mw .mw-block-head h4,#app .mw [data-mw-panel]>h3{font-size:13px}
#app .mw .mw-block-head h4>span,#app .mw .mw-columns,#app .mw .mw-summary-table thead th{font-size:10px}
#app .mw .mw-command label,#app .mw .mw-block-head button,#app .mw .mw-presets button,
#app .mw .mw-cell input,#app .mw .mw-cell select,#app .mw .mw-weight input,
#app .mw .mw-summary-table th,#app .mw .mw-summary-table td{font-size:12px}
#app .mw #mw-budget{font-size:16px;min-width:80px;height:34px}
#app .mw .mw-command>small,#app .mw .mw-summary-note,#app .mw .mw-feedback,
#app .mw #mw-edit-count,#app .mw .mw-result small{font-size:11px}
#app .mw .mw-footer .mw-total-line b{font-size:13px}
#app .mw .mw-row-main{min-height:62px}
#app .mw .mw-block{margin-bottom:12px}
#app .mw .mw-presets{justify-content:flex-start;margin:0 0 8px}
#app .mw .mw-presets button{min-height:34px;padding:6px 9px}
#app .mw .mw-funding-block .mw-block-head{margin-bottom:7px;padding-bottom:7px}
#app .mw .mw-next-step{display:none}
#app .mw #mw-dialog h3,#app .mw #mw-history-dialog h3,#app .mw #mw-prepare-dialog h3{font-size:15px}
#app .mw #mw-dialog .mw-strategy-row,#app .mw #mw-dialog .mw-strategy-row label{font-size:12px}
#app .mw .mw-strategy-budget{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px;font-size:12px}#app .mw .mw-strategy-budget input{width:112px;min-height:34px;font-size:13px}#app .mw .mw-strategy-routing{padding:8px 10px;margin:0 0 8px;border-left:3px solid var(--mw-accent);background:var(--mw-bg);font-size:11px;line-height:1.5}#app .mw .mw-strategy-actions[hidden]{display:none}#app .mw #mw-strategy-confirm{margin-top:12px;padding:12px;border:1px solid var(--mw-section-border);border-radius:8px;background:var(--mw-section)}#app .mw #mw-strategy-confirm h4{font-size:13px;margin:0 0 6px}#app .mw #mw-strategy-confirm .mw-confirm-row{display:flex;justify-content:space-between;gap:8px;border-top:1px solid var(--mw-line);padding:5px 0;font-size:11px}#app .mw #mw-strategy-confirm .mw-confirm-row b{font-size:11px}
@media(pointer:coarse){#app .mw .mw-cell :is(input,select):focus{font-size:16px}}
.mw .mw-crypto-setting{border-top:1px solid #d8dee7;margin-top:12px;padding-top:12px;font-size:12px;line-height:1.6;color:#465267}
.mw .mw-crypto-setting .mw-crypto-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;font-weight:600;line-height:1.5;color:#182c46;min-height:44px}
.mw .mw-crypto-toggle input{appearance:auto;width:20px;height:20px;min-height:20px;flex:0 0 20px;accent-color:#3475e9}
.mw .mw-crypto-setting p{font-size:12px;line-height:1.6;margin:6px 0}
.mw .mw-crypto-save{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px}
.mw .mw-crypto-save button{font-size:12px;min-height:40px;padding:8px 12px;border:1px solid #b9c5d7;border-radius:8px;background:#fff;color:#1f4a88;white-space:nowrap}
.mw .mw-crypto-setting small{font-size:12px;line-height:1.5}
.mw-scope-list,.mw-timing{display:grid;gap:6px;padding:10px;border:1px solid #c7d4d7;border-radius:9px;background:#fff}.mw-scope-list label,.mw-timing label{display:flex;align-items:center;gap:9px;min-height:38px;font-size:12px}.mw-scope-list input,.mw-timing input{width:17px;height:17px;flex:0 0 auto}.mw-scope-list span,.mw-timing span{display:grid;gap:1px}.mw-scope-list b,.mw-timing b{font-size:12px}.mw-scope-list small,.mw-timing small{color:#60747a}.mw-timing{margin:0}.mw-timing legend{padding:0 5px;font-size:11px;font-weight:700;color:#486169}#mw-prepare-choices button small{display:block;margin-top:3px}

#mt-notice{position:fixed;z-index:10000;bottom:calc(96px + env(safe-area-inset-bottom));left:16px;right:16px;max-width:440px;margin:auto;padding:12px 16px;border:1px solid #597b82;border-radius:10px;background:#193b43;color:white;font-size:13px;line-height:1.5;box-shadow:0 3px 12px #0002}#mt-notice[hidden]{display:none}

/* Approved investment mockup: a short editor, with final consent in the existing approval dialog. */
#app #mt-editor.mw-guided{scroll-margin-top:120px}
#app #mt-editor.mw-guided .mw-ui-heading{display:flex;align-items:center;gap:10px;padding-bottom:13px;margin-bottom:15px;border-bottom:1px solid var(--mw-line)}
#app #mt-editor.mw-guided .mw-ui-heading b{font-size:14px}#app #mt-editor.mw-guided .mw-ui-heading>span{margin-left:auto;font-size:12px;color:var(--mw-muted)}
#app #mt-editor.mw-guided .mw-ui-heading button{background:none;border:0;padding:5px 0;font-size:12px}
#app #mt-editor.mw-guided[data-ui-step="1"]>.mw-editor-block,#app #mt-editor.mw-guided[data-ui-step="1"]>.mw-approval-block,
#app #mt-editor.mw-guided[data-ui-step="2"]>.mw-start-choices,#app #mt-editor.mw-guided[data-ui-step="2"]>.mw-funding-block{display:none}
#app #mt-editor.mw-guided>.mw-top{margin-bottom:12px}#app #mt-editor.mw-guided .mw-start-choices{display:grid;grid-template-columns:1fr;gap:8px;margin-bottom:16px}
#app #mt-editor.mw-guided .mw-start-choices>button{display:grid;grid-template-columns:1fr auto;gap:3px 10px;text-align:left;padding:12px 13px;background:var(--mw-bg);border:1px solid var(--mw-line);border-radius:9px}
#app #mt-editor.mw-guided .mw-start-choices>button b{font-size:13px}#app #mt-editor.mw-guided .mw-start-choices>button small{grid-row:2;font-size:12px;color:var(--mw-muted)}#app #mt-editor.mw-guided .mw-start-choices>button>span{grid-column:2;grid-row:1/3;align-self:center;font-size:17px}
#app #mt-editor.mw-guided .mw-start-choices>button:first-child{border-color:var(--mw-accent)}
#app #mt-editor.mw-guided .mw-command{display:block}#app #mt-editor.mw-guided .mw-command label{display:block;font-size:13px}#app #mt-editor.mw-guided .mw-command label>span{display:flex;align-items:baseline;margin-top:8px}#app #mt-editor.mw-guided #mw-budget{font-size:23px;min-width:100px;max-width:85%;height:40px;background:transparent;padding-left:0}
#app #mt-editor.mw-guided .mw-funding-block>.mw-block-head{display:none}#app #mt-editor.mw-guided .mw-ui-schedule{margin-top:21px}#app #mt-editor.mw-guided .mw-ui-schedule h4{font-size:13px;margin:0 0 9px}#app #mt-editor.mw-guided .mw-ui-cadence{display:flex;gap:6px}#app #mt-editor.mw-guided .mw-ui-cadence>button{flex:1;font-size:13px;min-height:40px;border:1px solid var(--mw-line);background:var(--mw-bg);border-radius:8px}#app #mt-editor.mw-guided .mw-ui-cadence>[aria-pressed=true]{border-color:var(--mw-accent);color:var(--mw-accent);font-weight:650;background:var(--mw-section)}
#app #mt-editor.mw-guided #mw-ui-schedule-note{font-size:13px;margin:11px 0}#app #mt-editor.mw-guided .mw-ui-schedule>small{display:block;font-size:12px;color:var(--mw-muted);margin-top:10px;line-height:1.6}#app #mt-editor.mw-guided .mw-ui-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:8px 0}#app #mt-editor.mw-guided .mw-ui-fields label{font-size:12px}#app #mt-editor.mw-guided .mw-ui-fields input,#app #mt-editor.mw-guided .mw-ui-fields select{display:block;width:100%;margin-top:4px;min-height:36px;font-size:13px}
#app #mt-editor.mw-guided .mw-ui-next{display:block;width:100%;margin-top:22px;background:var(--mw-accent);color:#fff;min-height:44px;border:0;border-radius:9px;font-size:14px;font-weight:650}#app #mt-editor.mw-guided .mw-ui-next[hidden]{display:none}
#app #mt-editor.mw-guided .mw-presets{justify-content:flex-end}#app #mt-editor.mw-guided .mw-approval-block .mw-footer{display:block}#app #mt-editor.mw-guided .mw-approval-block .mw-actions{margin-top:13px}#app #mt-editor.mw-guided .mw-footer .mw-actions button{min-height:44px;font-size:14px}
#app #mt-editor.mw-guided .mw-ui-active-note{font-size:12px;color:var(--mw-muted);line-height:1.6;margin:10px 0}
#app #mt-editor.mw-guided>#mw-status{font-size:12px;line-height:1.6;white-space:pre-wrap;margin-top:10px}#app #mt-editor.mw-guided>#mw-status:empty{display:none}
#app #mt-editor.mw-guided .mw-cell input,#app #mt-editor.mw-guided .mw-cell select{font-size:13px}

/* ───── 계획 수정 한 창 (2026-09-27 목업 v3) — 단계 없이 금액·나눠 사기(달력)·종목·계좌, 아래에 ‘승인하고 예약’ ───── */
#app #mt-editor.mw-guided[data-ui-step="all"]>.mw-start-choices,#app #mt-editor.mw-guided[data-ui-step="all"]>.mw-presets{display:none}
#app #mt-editor.mw-guided[data-ui-step="all"][data-fresh="true"]>.mw-start-choices,#app #mt-editor.mw-guided[data-ui-step="all"][data-choose="1"]>.mw-start-choices{display:grid}
#app #mt-editor.mw-guided[data-ui-step="all"][data-fresh="true"]>:is(.mw-funding-block,.mw-editor-block,.mw-approval-block,.mw-ui-accounts),#app #mt-editor.mw-guided[data-fresh="true"] .mw-ui-restart{display:none}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-ui-heading{padding-bottom:8px;margin-bottom:8px}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-ui-heading b{font-size:15px}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-ui-heading .mw-ui-restart{margin-left:auto;font-size:12px;color:var(--mw-accent,#356cf5);font-weight:600;padding:4px 0;min-height:0}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-start-choices{gap:0;border:1px solid var(--mw-line);border-radius:12px;overflow:hidden;margin-bottom:12px}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-start-choices>button{border:0;border-radius:0;border-bottom:1px solid var(--mw-line);padding:9px 12px;background:transparent}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-start-choices>button:last-child{border-bottom:0}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-start-choices>button:first-child{background:color-mix(in srgb,var(--mw-accent,#356cf5) 7%,transparent)}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-start-choices>button small{font-size:11px}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-funding-block,#app #mt-editor.mw-guided[data-ui-step="all"] .mw-editor-block{padding:10px 0;margin-bottom:0}
#app #mt-editor.mw-guided[data-ui-step="all"] #mw-budget{font-size:20px;height:38px}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-ui-schedule{margin-top:12px}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-ui-schedule h4{font-size:12px;color:var(--mw-muted);font-weight:650;margin:0 0 6px}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-ui-cadence{display:flex;gap:0;background:var(--mw-line);border-radius:9px;padding:2px}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-ui-cadence button{flex:1;min-width:0;min-height:30px;padding:4px 0;border:0;border-radius:7px;background:transparent;font-size:12.5px;font-weight:650;color:var(--mw-muted);white-space:nowrap}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-ui-cadence button[aria-pressed="true"]{background:var(--plan-card,#fff);color:var(--plan-ink,#17263c);box-shadow:0 1px 2px rgba(23,38,60,.16)}
#app #mt-editor.mw-guided[data-ui-step="all"] #mw-ui-schedule-note{font-size:12px;font-weight:650;margin:6px 0 4px}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-ui-schedule>details{font-size:11.5px;margin-top:4px}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-ui-schedule>small{font-size:11px;line-height:1.5;margin-top:6px;word-break:keep-all}
/* 달력 — 칸 사이 틈을 두고 고른 날은 칸 안의 동그라미로(이웃한 날끼리 붙어 보이지 않게) */
#app #mt-editor .mw-ui-cal{display:grid;gap:8px;margin-top:8px}
#app #mt-editor .mw-ui-month>b{display:block;font-size:12px;font-weight:700;margin-bottom:2px}
#app #mt-editor .mw-ui-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));row-gap:2px;text-align:center;font-size:11.5px;font-variant-numeric:tabular-nums}
#app #mt-editor .mw-ui-grid i{font-style:normal;font-size:10px;color:var(--mw-muted);padding:2px 0}
#app #mt-editor .mw-ui-grid span{position:relative;display:grid;place-items:center;height:26px;font-size:11px;color:var(--plan-ink,#17263c);font-weight:600;white-space:nowrap}
#app #mt-editor .mw-ui-grid span.past{opacity:.35}
#app #mt-editor .mw-ui-grid span.off{color:var(--mw-muted);font-weight:400;opacity:.7}
#app #mt-editor .mw-ui-grid span.today::before{content:"";position:absolute;width:24px;height:24px;border-radius:50%;box-shadow:inset 0 0 0 1px var(--mw-line)}
#app #mt-editor .mw-ui-grid span.buy{color:#fff;font-weight:750}
#app #mt-editor .mw-ui-grid span.buy::before{content:"";position:absolute;z-index:-1;width:22px;height:22px;border-radius:50%;background:var(--plan-accent,#356cf5)}
#app #mt-editor .mw-ui-grid span{z-index:0}
#app #mt-editor .mw-ui-grid span.first::after{content:"";position:absolute;bottom:0;width:4px;height:4px;border-radius:50%;background:var(--plan-accent,#356cf5)}
#app #mt-editor .mw-ui-when{font-size:12px;font-weight:650;margin:4px 0 0}
/* 계좌 · 코인 줄 */
#app #mt-editor .mw-ui-accounts{padding:4px 0 8px;border-top:1px solid var(--mw-line)}
#app #mt-editor .mw-ui-line{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:1px 8px;align-items:baseline;width:100%;padding:8px 0;border:0;border-bottom:1px solid var(--mw-line);border-radius:0;background:transparent;font-size:12.5px;text-align:left;min-height:0}
#app #mt-editor .mw-ui-line:last-child{border-bottom:0}
#app #mt-editor .mw-ui-line[hidden]{display:none}
#app #mt-editor .mw-ui-line span{color:var(--mw-muted)}
#app #mt-editor .mw-ui-line b{font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#app #mt-editor .mw-ui-line i{font-style:normal;color:var(--mw-muted)}
#app #mt-editor .mw-ui-line small{grid-column:2/-1;font-size:11px;color:var(--mw-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#app #mt-editor .mw-ui-line small[hidden]{display:none}
/* 승인하고 예약 — 화면 아래에 붙어 있게 */
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-approval-block{position:sticky;bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:3;margin:6px 0 0;padding:8px 0!important;background:var(--plan-card,#fff)!important;border-top:1px solid var(--mw-line)!important}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-approval-block .mw-actions{margin-top:0}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-approval-block .mw-actions button{min-height:42px;font-size:14px}
/* 한 창에서는 옛 머리글(‘2026년 9월 포트폴리오’·‘일정·매수안 확인에서…’)을 숨긴다 — 위의 ‘9월 계획’ 한 줄로 충분 */
#app #mt-editor.mw-guided[data-ui-step="all"]>.mw-top,#app #mt-editor.mw-guided[data-ui-step="all"]>.mw-next-step{display:none}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-ui-heading .mw-ui-restart,#app #mt-editor.mw-guided[data-ui-step="all"] .mw-ui-cadence button[aria-pressed="true"]{color:var(--plan-accent,#356cf5)}
/* 한 창의 종목 줄 — 두 줄로: ① 종목 · 비율 ② 계좌 · 월 배정 · 설정 (사용자 “너무 큼직큼직”) */
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-row{padding:7px 0}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-row-main{grid-template-columns:minmax(0,1fr) auto 72px;gap:3px 8px}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-cell-symbol{grid-column:1/3;grid-row:1}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-cell-weight{grid-column:3;grid-row:1}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-cell-account{grid-column:1;grid-row:2}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-result{grid-column:2;grid-row:2;display:block;text-align:right;white-space:nowrap}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-result small{display:none}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-cell-type{grid-column:3;grid-row:2}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-cell-symbol input{min-height:34px;height:34px;padding:5px 9px;font-size:12.5px}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-weight input{height:34px;font-size:13px}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-cell-account select{min-height:26px;height:26px;padding:0 2px;border:0;font-size:11.5px}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-cell-type button{min-height:26px;height:26px;padding:0 8px;font-size:11px}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-result b{font-size:11.5px}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-add{min-height:32px;padding:4px 12px;font-size:12px}
#app #mt-editor.mw-guided[data-ui-step="all"] .mw-ui-heading{border-bottom:0}

/* 시작일·시각 고르기 (실행기 scheduleStart 일 때만) */
#app #mt-editor .mw-ui-grid button{position:relative;display:grid;place-items:center;height:26px;min-height:0;padding:0;border:0;border-radius:0;background:none;font:inherit;font-size:11px;font-weight:600;color:var(--plan-ink,#17263c);white-space:nowrap;z-index:0;cursor:pointer}
#app #mt-editor .mw-ui-grid button.buy{color:#fff;font-weight:750}
#app #mt-editor .mw-ui-grid button.buy::before{content:"";position:absolute;z-index:-1;width:22px;height:22px;border-radius:50%;background:var(--plan-accent,#356cf5)}
#app #mt-editor .mw-ui-grid button.first::after{content:"";position:absolute;bottom:0;width:4px;height:4px;border-radius:50%;background:var(--plan-accent,#356cf5)}
#app #mt-editor .mw-ui-grid button:not(.buy):hover::before{content:"";position:absolute;z-index:-1;width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 0 1px var(--plan-accent,#356cf5)}
#app #mt-editor .mw-ui-time{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;font-size:12px}
#app #mt-editor .mw-ui-time[hidden]{display:none}
#app #mt-editor .mw-ui-time label{color:var(--mw-muted);font-weight:650}
#app #mt-editor .mw-ui-time select{min-height:30px;height:30px;padding:0 8px;border:1px solid var(--mw-line);border-radius:8px;font-size:12.5px;background:var(--plan-card,#fff);color:var(--plan-ink,#17263c)}
#mt-command-dialog .mt-approval-start{margin:6px 0 0;font-size:12.5px;color:var(--plan-ink)}
#app #mt-editor .mw-ui-time label{white-space:nowrap;flex:none;display:inline}
#app #mt-editor .mw-ui-time select{width:auto;flex:0 0 150px}
#app #mt-editor.mw-guided .mw-month-picker{display:flex;align-items:center;gap:8px;min-width:0;font-size:12px;color:var(--mw-muted)}
#app #mt-editor.mw-guided .mw-month-picker input{width:142px;min-width:0;min-height:40px;padding:6px 8px;border:1px solid var(--mw-line);border-radius:8px;font-family:inherit;font-size:14px;font-weight:600;line-height:1.4;color:var(--mw-text);background:var(--card,#fff)}
#app #mt-editor.mw-guided .mw-month-save{display:flex;align-items:center;gap:10px;margin-bottom:12px;padding:10px 0;border-bottom:1px solid var(--mw-line)}
#app #mt-editor.mw-guided .mw-month-save p{flex:1;min-width:0;margin:0;font-size:12px;line-height:1.6}
#app #mt-editor.mw-guided .mw-month-save small{display:block;font-size:11px;color:var(--mw-muted);line-height:1.5}
#app #mt-editor.mw-guided .mw-month-save button{flex:none;min-height:40px;padding:8px 12px;font-size:12px;font-weight:600;border:1px solid var(--mw-accent,#356cf5);border-radius:8px;color:var(--mw-accent,#356cf5);background:var(--card,#fff)}
#app #mt-editor.mw-guided .mw-ui-heading{flex-wrap:wrap}
