.mf-maker { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 24px; align-items: start; }
.mf-panel { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; box-shadow: 0 1px 2px rgba(15,23,42,.05); display: flex; flex-direction: column; gap: 16px; }
.mf-field { display: flex; flex-direction: column; gap: 6px; }
.mf-label { font-size: 13px; font-weight: 600; color: #0f172a; }
.mf-select, .mf-input { width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font-family: inherit; font-size: 14px; color: #0f172a; background: #fff; }
.mf-select:focus, .mf-input:focus { border-color: #2563eb; outline: 2px solid rgba(37,99,235,.2); }
.mf-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mf-seg button { min-height: 40px; border: 1px solid #cbd5e1; border-radius: 10px; background: #f8fafc; color: #334155; font-weight: 600; font-size: 13px; cursor: pointer; transition: all .15s; }
.mf-seg button:hover { border-color: #94a3b8; color: #0f172a; }
.mf-seg button[aria-pressed="true"] { background: #2563eb; border-color: #2563eb; color: #fff; }
.mf-check-row { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: #334155; cursor: pointer; }
.mf-btn-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.mf-btn { min-height: 44px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; border: 1px solid transparent; padding: 0 16px; transition: all .15s; }
.mf-btn-primary { background: #2563eb; color: #fff; }
.mf-btn-primary:hover { background: #1d4ed8; }
.mf-btn-gold { background: #f0fdfa; color: #0f766e; border-color: #5eead4; }
.mf-btn-gold:hover { background: #ccfbf1; }
.mf-btn-ghost { background: #fff; color: #0f172a; border-color: #cbd5e1; }
.mf-btn-ghost:hover { border-color: #2563eb; color: #2563eb; }
.mf-status { font-size: 13px; color: #0d9488; min-height: 20px; margin: 0; font-weight: 600; }
.mf-sheet-wrap { display: flex; flex-direction: column; gap: 20px; }
.mf-paper { background: #ffffff; border: 1px solid #e2e8f0; border-top: 4px solid #2563eb; border-radius: 12px; padding: 28px; box-shadow: 0 10px 30px -8px rgba(15,23,42,.08); }
.mf-paper-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 1.5px solid #0f172a; padding-bottom: 14px; margin-bottom: 16px; }
.mf-paper-title { font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; color: #0f172a; }
.mf-paper-sub { font-size: 13px; color: #475569; margin: 0; }
.mf-paper-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #475569; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px dashed #cbd5e1; }
.mf-prob-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.mf-prob-item { display: flex; gap: 8px; align-items: baseline; padding: 10px 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 15px; line-height: 1.5; }
.mf-prob-num { font-family: ui-monospace, monospace; font-size: 13px; font-weight: 700; color: #2563eb; min-width: 26px; }
.mf-prob-q { flex: 1; color: #0f172a; font-weight: 500; }
.mf-prob-line { display: inline-block; min-width: 56px; border-bottom: 1.5px solid #94a3b8; margin-left: 6px; }
.mf-paper-foot { margin-top: 20px; padding-top: 12px; border-top: 1px solid #e2e8f0; display: flex; justify-content: space-between; font-size: 12px; color: #64748b; }
.mf-key-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; font-family: ui-monospace, monospace; font-size: 14px; }
.mf-key-item { padding: 6px 10px; background: #f0fdfa; border: 1px solid #99f6e4; color: #0f766e; border-radius: 6px; font-weight: 600; }
.mf-hidden { display: none !important; }
@media (max-width: 900px) { .mf-maker { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .mf-paper { padding: 18px; }
  .mf-prob-grid, .mf-key-grid { grid-template-columns: 1fr; }
}
@media print {
  .mf-panel { display: none !important; }
  .mf-maker { display: block !important; }
  .mf-paper { box-shadow: none !important; border: none !important; border-top: none !important; padding: 0 !important; page-break-after: always; }
  .mf-paper:last-child { page-break-after: auto; }
}