.mk-list-panel{display:flex;flex-direction:column;min-height:440px}
.mk-list-panel>.pagination{margin-top:auto}
.mk-filterbar select{min-width:150px}
.mk-list-panel table{min-width:1180px;white-space:normal}
.mk-list-panel th,.mk-list-panel td{vertical-align:middle}
.mk-list-panel td:nth-child(1){min-width:190px}
.mk-list-panel td:nth-child(2){min-width:180px}
.mk-list-panel td:nth-child(3){min-width:180px}
.mk-list-panel td:nth-child(4){min-width:190px}
.mk-list-panel td:nth-child(5){min-width:170px}
.mk-empty{padding:44px 24px 52px;text-align:center}
.mk-empty>p{color:var(--muted);font-size:12px;margin:8px 0 28px}
.mk-template-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;max-width:1050px;margin:0 auto;text-align:left}
.mk-template-card{border:1px solid var(--line);border-radius:10px;background:white;padding:16px;min-height:130px;display:flex;flex-direction:column;align-items:flex-start;gap:7px;color:var(--ink)}
.mk-template-card:hover{border-color:#93B4FA;background:var(--soft)}
.mk-template-card span{font-weight:600;font-size:14px}
.mk-template-card small{color:var(--muted);line-height:19px;flex:1}
.mk-template-card b{color:var(--brand);font-size:12px;font-weight:500}
.mk-editor-drawer{width:min(1040px,calc(100vw - 216px))!important}
.mk-detail-drawer{width:min(760px,calc(100vw - 216px))!important}
.mk-steps{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--canvas)}
.mk-steps li{position:relative;padding:12px 10px;display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;border-right:1px solid var(--line)}
.mk-steps li:last-child{border-right:0}
.mk-steps li span{width:22px;height:22px;border-radius:50%;background:white;border:1px solid var(--line);display:inline-flex;align-items:center;justify-content:center;flex:none;font-variant-numeric:tabular-nums}
.mk-steps li b{font-weight:500;white-space:nowrap}
.mk-steps li.active{background:var(--soft);color:var(--brand)}
.mk-steps li.active span{background:var(--brand);border-color:var(--brand);color:white}
.mk-steps li.done{color:var(--success)}
.mk-steps li.done span{background:var(--successbg);border-color:#A7F3D0;color:var(--success)}
.mk-editor-content{display:flex;flex-direction:column;gap:20px}
.mk-editor-content>.field{max-width:420px}
.mk-editor-section{border:1px solid var(--line);border-radius:10px;padding:18px;display:flex;flex-direction:column;gap:14px;background:#fff}
.mk-editor-section>h3,.mk-section-head h3{font-size:15px;font-weight:600}
.mk-section-head,.mk-picker-tools{display:flex;align-items:center;justify-content:space-between;gap:12px}
.mk-section-head strong{color:var(--brand);font-size:12px}
.mk-picker-tools{justify-content:flex-start;flex-wrap:wrap}
.mk-picker-tools span{margin-left:auto;color:var(--muted);font-size:12px}
.mk-store-filters{grid-template-columns:1.5fr repeat(3,1fr)}
.mk-store-table,.mk-product-table,.mk-member-table{max-height:300px;overflow:auto;border:1px solid var(--line);border-radius:8px}
.mk-coupon-table{max-height:310px;overflow:auto;border:1px solid var(--line);border-radius:8px}
.mk-store-table .table-scroll,.mk-product-table .table-scroll,.mk-member-table .table-scroll,.mk-coupon-table .table-scroll{overflow:visible}
.mk-store-table table,.mk-product-table table,.mk-member-table table,.mk-coupon-table table{min-width:640px}
.mk-store-table th,.mk-product-table th,.mk-member-table th,.mk-coupon-table th{position:sticky;top:0;background:var(--canvas);z-index:1}
.mk-store-table input,.mk-product-table input,.mk-member-table input,.mk-coupon-table input{width:16px;height:16px;accent-color:var(--brand)}
.mk-coupon-table td{vertical-align:middle}
.mk-coupon-table td:nth-child(1){width:54px;text-align:center}
.mk-coupon-table td:nth-child(5){width:150px}
.mk-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:330px;overflow:auto;padding:2px}
.mk-check-card{border:1px solid var(--line);border-radius:8px;padding:12px;display:flex;align-items:flex-start;gap:10px;background:white;cursor:pointer}
.mk-check-card:has(input:checked){border-color:#93B4FA;background:var(--soft)}
.mk-check-card input,.mk-inline-check input{width:16px;height:16px;min-height:16px;margin-top:2px;accent-color:var(--brand)}
.mk-check-card span{display:flex;flex-direction:column;gap:3px}
.mk-check-card strong{font-size:13px;font-weight:500}
.mk-check-card small{font-size:11px;color:var(--muted)}
.mk-inline-check{display:flex;align-items:center;gap:9px;font-size:13px}
.mk-scope-result,.mk-rule-intro,.mk-rule-summary{border-radius:8px;background:var(--soft);padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:16px;color:var(--brand)}
.mk-scope-result span,.mk-rule-intro span,.mk-rule-summary span{font-size:12px;color:var(--muted)}
.mk-rule-intro{justify-content:flex-start}
.mk-rule-intro strong{min-width:110px}
.mk-rule-summary strong{font-size:16px}
.mk-rich-toolbar{display:flex;align-items:center;gap:4px;border:1px solid var(--line);border-bottom:0;border-radius:7px 7px 0 0;padding:4px 6px;background:var(--canvas)}
.mk-rich-toolbar button{height:26px;min-width:28px;padding:0 7px;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--ink);font-size:12px}
.mk-rich-toolbar button:hover{border-color:var(--line);background:#fff}
.mk-rich-editor{min-height:82px;max-height:170px;overflow:auto;border:1px solid var(--line);border-radius:0 0 7px 7px;padding:8px 10px;font-size:13px;line-height:1.55;outline:none}
.mk-rich-editor:focus{border-color:var(--brand);box-shadow:0 0 0 2px color-mix(in srgb,var(--brand) 14%,transparent)}
.mk-rich-editor:empty:before{content:attr(data-placeholder);color:var(--muted)}
.mk-rich-editor p,.mk-rich-editor div,.mk-description-preview p,.mk-description-preview div{margin:0 0 4px}
.mk-rich-editor ul,.mk-rich-editor ol,.mk-description-preview ul,.mk-description-preview ol{margin:2px 0;padding-left:22px}
#mk-summary{height:62px}
.mk-campaign-cover{display:block;width:100%;max-height:220px;object-fit:cover;border:1px solid var(--line);border-radius:8px;background:var(--canvas)}
.mk-description-preview{border:1px solid var(--line);border-radius:8px;padding:12px 14px;line-height:1.65;overflow-wrap:anywhere}
.mk-detail-description{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.mk-preview-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.85fr);gap:18px;align-items:start}
.mk-preview-layout>section{border:1px solid var(--line);border-radius:9px;padding:18px;display:flex;flex-direction:column;gap:16px}
.mk-preview-layout h3{font-weight:600}
.mk-summary-list{border:1px solid var(--line);border-radius:8px;overflow:hidden}
.mk-summary-list>div{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:11px 14px;border-bottom:1px solid var(--line)}
.mk-summary-list>div:last-child{border-bottom:0}
.mk-summary-list span{font-size:12px;color:var(--muted);flex:none}
.mk-summary-list strong{font-size:13px;font-weight:500;text-align:right;overflow-wrap:anywhere}
.mk-calculation{background:var(--canvas);border-radius:8px;padding:14px;display:flex;flex-direction:column;gap:10px}
.mk-calculation>div,.mk-share-list>div{display:flex;justify-content:space-between;align-items:center;gap:16px}
.mk-calculation .total{border-top:1px solid var(--line);padding-top:10px}
.mk-calculation .total strong{font-size:22px}
.mk-calculation p{font-size:11px;color:var(--muted)}
.mk-share-list{display:flex;flex-direction:column;gap:9px;border-top:1px solid var(--line);padding-top:14px}
.mk-share-list span{color:var(--muted)}
.mk-share-list strong{font-weight:500}
.mk-preview-layout .notice ul{margin:6px 0 0;padding-left:18px;font-size:12px;color:var(--muted)}
.mk-detail-drawer .mk-summary-list{margin-top:2px}
@media(max-width:1200px){.mk-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.mk-steps li{padding:10px 8px}
.mk-steps li b{white-space:normal}
.mk-preview-layout{grid-template-columns:1fr}
.mk-editor-drawer,.mk-detail-drawer{width:calc(100vw - 76px)!important}
}
@media(max-width:760px){.mk-template-grid,.mk-choice-grid,.mk-store-filters{grid-template-columns:1fr}
.mk-steps{grid-template-columns:1fr}
.mk-steps li{border-right:0;border-bottom:1px solid var(--line)}
.mk-steps li:last-child{border-bottom:0}
}
